elm-program-test
elm-program-test copied to clipboard
Parse "Query.find always expects to find 1 element, but it found 2 instead." errors
Bug introduced in 3.6.2.
<body>
<button>A</button>
<button>A</button>
</body>
ProgramTest.clickButton "A"
TODO:
- [ ] Add a failing test in
tests/ProgramTestTests/UserInput/ClickButtonTest.elm
- [ ] grab the current error message from that and use it to add a test in
tests/ProgramTest/TestHtmlHacksTest.elm
- [ ] implement parsing of the error message in
src/ProgramTest/TestHtmlParser.elm
- [ ] make sure tests pass now
- [ ] update CHANGELOG.md
- [ ] PR should be made against or switched to the "develop" branch (not "main")