Skip to content

Trigger events in testing scenarios #2921

Closed Answered by Telroshan
abingham asked this question in Q&A
Discussion options

You must be logged in to vote

Or is there some lighter-weight "small headless browser" I can use to fetch my pages and render them

That's what we do for htmx's own test suite, we use mocha-chrome.
See these hx-trigger="revealed" tests, or this hx-trigger="load" one for examples

Hope this helps!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Telroshan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants