analytics/tracker
RobertJoonas 37116a2b12
Add tests for the pageleave script (#4744)
* move util function to util module

* move playwright config file to tracker dir root

* update Playwright + add gitignores

* Playwright: enable reuseExistingServer (non-CI env)

* store tracker src copies to avoid re-compilation in dev env

* test pageleave on simple navigation

* fix test util fn

* rename local_test npm script

* make test util able to expect multiple requests

* test pageleaves in SPAs

* test pageleave with manual URL

* test pageleave not sent in manual when pageview not triggered

* extend util fn to refute event requests

* test pageleaves not sent in excluded hash pages

* store hashes instead of file copies to detect /tracker/src changes

* drop async

* speed up test suite
2024-10-28 15:30:03 +00:00
..
dev-compile Add tests for the pageleave script (#4744) 2024-10-28 15:30:03 +00:00
src Fix experimental pageleaves script (SPAs) (#4667) 2024-10-14 09:34:47 +00:00
test Add tests for the pageleave script (#4744) 2024-10-28 15:30:03 +00:00
.eslintrc.json Add basic test harness for browserstack/playwright (#1961) 2022-08-04 11:50:09 +03:00
compile.js Add tests for the pageleave script (#4744) 2024-10-28 15:30:03 +00:00
LICENSE.md Change Javascript license to MIT (#369) 2020-10-16 11:08:58 +03:00
package-lock.json Add tests for the pageleave script (#4744) 2024-10-28 15:30:03 +00:00
package.json Add tests for the pageleave script (#4744) 2024-10-28 15:30:03 +00:00
playwright.config.js Add tests for the pageleave script (#4744) 2024-10-28 15:30:03 +00:00
report-sizes.js add size reporter GH action (#4745) 2024-10-28 09:59:16 +00:00