avh4/elm-program-test
Voir sur GitHubclickButton should match (or prefer) full-text matches over substring matches
Open
#155 ouverte le 22 févr. 2022
bugdiscussionhelp wanted
Métriques du dépôt
- Stars
- (95 stars)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
Description
<body>
<button>A</button>
<button>Analyze</button>
</body>
ProgramTest.clickButton "A"
This should be able to pass, clicking the first button.
This is a shortcoming of https://package.elm-lang.org/packages/elm-explorations/test/latest/Test-Html-Selector#text afaik, Test.Html.Selector provides no way to distinguish full-text matches from substring matches, so I'm not sure there's a way to fix this without additions to elm-explorations/test.