How do I write tests for dropdowns?

I have a use case scenario where I need to update my user after a click event from option tag like below!

What I’m doing is that I have a click event in each of the options and when there is a click, the user’a role is updated. While it’s easy to code something like this, how do I write live view tests for this?