elm-program-test icon indicating copy to clipboard operation
elm-program-test copied to clipboard

Parse "Query.find always expects to find 1 element, but it found 2 instead." errors

Open avh4 opened this issue 2 years ago • 0 comments

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")

avh4 avatar Feb 22 '22 23:02 avh4