14 Commits

Author SHA1 Message Date
MichaelWest22
408850a08e
Additional Code Coverage (#3282)
* Improve loc coverage by removing dead paths caused by bad type checks and add some tests for other paths

* removed exception for https://github.com/microsoft/playwright/issues/5894 that was fixed in 2022 with webkit 16.0
2025-04-24 13:54:43 -06:00
MichaelWest22
24a0106f76
Update testing framework to web-test-runner and improve code coverage (#3273)
* Fix old npm dependencies

* implement web-test-runner tests for headless alongside Mocha browser tests

* Increase test and code coverage

* update to 100% coverage and impove eslint

* Update testing Doco

* revert all htmx changes and updates/disable tests needed

* fix browser mocha test

* Default testing to use playwrite only instead of puppeter

* playwright install fix

* Imporve test summary reporting

* flatten false looks closer to original
2025-04-17 17:55:43 -06:00
Vincent
a331244923
Support multiple extended selectors for hx-include, hx-trigger from, and hx-disabled-elt (#2902)
* Initial suggestion (squashed)

Support multiple extended selectors for hx-include

Additional test for nested standard selector

Add @MichaelWest22 hx-disabled-elt multiple selector test

Add hx-trigger `from` test with multiple extended selectors

Simplify

Include #2915 fix

Update htmx.js

Split for readability

Don't apply global to previous selectors

Rewrite loop, restore global recursive call, minimize diff

Use break for better readability

Co-Authored-By: MichaelWest22 <12867972+MichaelWest22@users.noreply.github.com>

* Keep global as a first-position-only keyword

* Wrapped selector syntax

* Replace substring check by individual chars check

* Fix format

---------

Co-authored-by: MichaelWest22 <12867972+MichaelWest22@users.noreply.github.com>
2024-12-12 11:12:01 -07:00
Alexander Petros
4b890ce72d Run linter on the tests too 2023-12-21 13:22:10 -05:00
carson
2707016f01 support this in hx-include and hx-indicator
fixes

https://github.com/bigskysoftware/htmx/issues/757
https://github.com/bigskysoftware/htmx/issues/767
2022-01-17 10:45:59 -07:00
Deniz Akşimşek
09f0f57c4f
Merge branch 'dev' into dev 2021-01-24 12:32:40 +03:00
Ben Croker
7781cf5829
Improved test name 2021-01-22 10:23:14 +01:00
Ben Croker
3414e0ed69
Added missing hx-include to test 2021-01-22 10:02:12 +01:00
Ben Croker
10e068fcaa
Added test for two values included when not in form 2021-01-22 09:32:52 +01:00
Deniz Akşimşek
c36b18b189 move over changes from master (oops) 2021-01-15 15:00:01 +00:00
Ben Croker
0f226d29dd
Added test 2020-12-19 10:18:42 +01:00
carson
ba6d38e9dd Fix https://github.com/bigskysoftware/htmx/issues/19
clean up uses of getRawAttribute() and add a `data-*` test for all attribute tests.
2020-05-23 04:52:52 -07:00
carson
ef152a73b9 Clean up URL parameter handling & tests, support anchors 2020-05-22 13:42:57 -07:00
carson
3aa8c64754 le big re-rename 2020-05-17 05:22:19 -07:00