-
Use use httpx.Client in my tests to make sure my endpoints all work as expected. Naively, I had expected it to help test various HTMX features in the returned pages. For example, I use Do I need to go with a full selenium-style test, i.e. with an actual browser, to interact with these triggers? Or is there some lighter-weight "small headless browser" I can use to fetch my pages and render them? Or perhaps some other kind of approach I just don't know about? Any advice, suggestions, or warnings would be great! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That's what we do for htmx's own test suite, we use Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Thanks, that does help a lot! |
Beta Was this translation helpful? Give feedback.
That's what we do for htmx's own test suite, we use
mocha-chrome
.See these
hx-trigger="revealed"
tests, or thishx-trigger="load"
one for examplesHope this helps!