elm-explorations / elm-explorations/test
Add the ability to query for keyed nodes
Open
html
- Dominant language
- Elm
- Stars
- 244
- Forks
- 40
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 2
Description
In some cases having keyed html nodes makes a functional difference, so we want to test for it.
I'd like to write something like
```
test "Keyed Button has the expected key" <|
\_ ->
Html.Keyed.node "button" [] [ ( "key1", Html.text "I'm a button!" ) ]
|> Query.fromHtml
|> Query.has [ Selector.key "key1" ]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.