elm-explorations / elm-explorations/test

Simulate event bubbling?

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.