Skip to content

Commit

Permalink
Integration tests for visitor id vs user id scenarios (#22776)
Browse files Browse the repository at this point in the history
* Init integration test for visitor id vs user id

* Add another test scenario

* Add more test cases, refactor code a bit

* phpcbf

* Use explicit log in and log out test methods

* Fix campaign generated test visits

* Add test cases including login/logout without actions, just page views

* Improve tests to better test action attribution

* Add mechanism to enable/disable user id override

* Add a set of tests when user id overwrites visitor id config is disabled

* Fix typos

* Add JS tracker tests

* Add JS tracker tests when overwrite config is disabled

* Dry up JS tracker tests

* rework test so JS and Integration tests are more comparable

* Adds another test case

---------

Co-authored-by: Marc Neudert <[email protected]>
Co-authored-by: sgiehl <[email protected]>
  • Loading branch information
3 people authored Dec 20, 2024
1 parent ab4ca64 commit c13a70e
Show file tree
Hide file tree
Showing 4 changed files with 1,498 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/PHPUnit/Fixtures/UITestFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ public static function createOverlayTestSite($idSite = 3)
$files = [
'index.html',
'opt-out.php',
'user-id-visitor-id.php',
'page-1.html',
'page-2.html',
'page-3.html',
Expand Down
Loading

0 comments on commit c13a70e

Please sign in to comment.