elm-explorations / elm-explorations/test

Html test fails (possibly due to lazy containing keyed node containing lazy?)

Open
#78 9 comments 0 reactions 1 assignee Claimed by @avh4 View on GitHub
bug html
Dominant language
Elm
Stars
244
Forks
40
Avg merge
1d 23h
Merged PRs (30d)
2

Description

Any Html test I run fails with the message below

```
▼ Query.fromHtml

Internal Error: failed to decode the virtual dom.
Please report this at .
Problem with the value at json.e[2].e[0].e[0].k.e[0].e[0].k:

undefined

Expecting an OBJECT with a field named `$`

▼ Internal Error: failed to decode the virtual dom.
Please report this at

▼ Problem with the value at json.e[2].e[0].e[0].k.e[0].e[0].k:

undefined

Expecting an OBJECT with a field named `$`
```
The test is:

```
describeHeaders =
[ describe "headers"
[ test "should contain a container with three child divs" <|
\() ->
view model
|> Query.fromHtml
|> Query.findAll [ class "header" ]
|> Query.index 0
|> Query.has [ text "Score" ]
]
]
```

but I've got the same error whatever the test is.

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.