I’m trying to do some TDD with Elm. To test events, I do something like this:
|> Query.find [ Selector.id “someId” ]
|> Event.simulate Event.click
|> Event.expect SomeEvent
That works fine to simulate a click. But I can’t figure out how to test a html Select/option.
What I want to test: when user selects the last option from a select, should dispatch a specific message with a specific value.
Any tips?