elm-explorations / elm-explorations/test
Simulate event bubbling?
Open
Design Question
- Dominant language
- Elm
- Stars
- 244
- Forks
- 40
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 2
Description
Someone suggested simulating event bubbling in html tests.
The basic idea would be:
* I have `
` in my vdom* In a test, I simulate a click on the child ``
* Since the `onClick` handler on the parent `
` would trigger in the real world, I should be able to write a test verifying that it triggered
In this world, presumably `stopPropagation` would need to be processed and handled properly.
Thoughts?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.