-
-
Notifications
You must be signed in to change notification settings - Fork 154
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
It does not appear that global components are mounted during tests, this would be a great feature to have.
global component Modal {
fun method {
true
}
fun render {
<Html.Portals.Body>
<div class="modal">
"modal"
</div>
</Html.Portals.Body>
}
}
suite "Global Component" {
test "is mounted during tests" {
Test.Html.start(<span/>)
|> Test.Html.findGlobally(".modal")
}
test "can call methods in tests" {
// gives runtime error (TypeError: Cannot read properties of undefined (reading 'b'))
Modal.method()
}
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working