How do I write tests for dropdowns?

Just a caveat, while this kind of thing can’t be tested directly with Phoenix.LiveViewTest, you can still test client side interactions in Phoenix with integration testing and browser automation libraries such as Wallaby and Hound.