Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix integration tests #1333

Merged
merged 5 commits into from
Jul 19, 2024
Merged

Conversation

matus-tomlein
Copy link
Contributor

@matus-tomlein matus-tomlein commented Jul 18, 2024

Makes the tests less flaky by:

  1. Updates the webdriver dependencies
  2. In integration.test.ts accounts for the bug Tracking a page view with a custom title sets the title for future page views as well #1332 which causes the second page view to have the same custom title as the first one if not explicitly specified. Currently just comments the check out, but will fix the bug in a follow up PR.
  3. In sessionStorage.test.ts makes the page reload between checks of the expired session cookie as Chrome is flaky about purging the cookie if the page does not reload.
  4. In cookies.test.ts skips a check for a cookie being dropped as this is flaky on Chrome.
  5. In media.test.ts removes checks for the duration as not all events have this property if the video is not fully loaded yet.
  6. Moves the media tests to a separate folder and disables the Vimeo integration tests on CI (still work locallly) as Vimeo blocks Sauce Labs

Copy link

bundlemon bot commented Jul 18, 2024

BundleMon

Files added (6)
Status Path Size Limits
libraries/browser-tracker-core/dist/index.mod
ule.js
+27.31KB 28KB / +10%
trackers/javascript-tracker/dist/sp.js
+25.38KB 25.5KB / +10%
trackers/javascript-tracker/dist/sp.lite.js
+15.69KB 16KB / +10%
trackers/browser-tracker/dist/index.umd.min.j
s
+15.56KB 16KB / +10%
libraries/tracker-core/dist/index.module.js
+13.36KB 15KB / +10%
trackers/browser-tracker/dist/index.module.js
+3.51KB 5KB / +10%

Total files change +100.81KB 0%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history

@matus-tomlein matus-tomlein requested review from jethron and a team July 18, 2024 14:41
Copy link
Contributor

@jethron jethron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@matus-tomlein matus-tomlein merged commit 5311e26 into release/3.24.2 Jul 19, 2024
3 checks passed
@matus-tomlein matus-tomlein deleted the issue/integration_tests_fix branch July 19, 2024 07:07
@matus-tomlein matus-tomlein mentioned this pull request Jul 23, 2024
matus-tomlein added a commit that referenced this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants