analytics/tracker/test
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
..
fixtures Add tests for the pageleave script (#4744) 2024-10-28 15:30:03 +00:00
support Add tests for the pageleave script (#4744) 2024-10-28 15:30:03 +00:00
custom-event-edge-cases.spec.js Use user-agent instead of screen_width to get device type (#2711) 2023-03-02 11:04:01 +01:00
file-downloads.spec.js Use user-agent instead of screen_width to get device type (#2711) 2023-03-02 11:04:01 +01:00
hash-exclusions.spec.js Use user-agent instead of screen_width to get device type (#2711) 2023-03-02 11:04:01 +01:00
manual.spec.js Add tests for the pageleave script (#4744) 2024-10-28 15:30:03 +00:00
outbound-links.spec.js Use user-agent instead of screen_width to get device type (#2711) 2023-03-02 11:04:01 +01:00
pageleave.spec.js Add tests for the pageleave script (#4744) 2024-10-28 15:30:03 +00:00
pageview.spec.js Use user-agent instead of screen_width to get device type (#2711) 2023-03-02 11:04:01 +01:00
revenue.spec.js Add tagged events support for revenue goals (#3038) 2023-06-19 12:59:47 +01:00
tagged-events.spec.js Use user-agent instead of screen_width to get device type (#2711) 2023-03-02 11:04:01 +01:00