elm-explorations / elm-explorations/test

Add the ability to query for keyed nodes

Open
#83 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.