snowplow / snowplow-javascript-tracker

Snowplow event tracker for client-side and server-side JavaScript. Add analytics to your websites, web apps and servers.
http://snowplowanalytics.com
BSD 3-Clause "New" or "Revised" License
555 stars 222 forks source link

Fix integration tests #1333

Closed matus-tomlein closed 4 months ago

matus-tomlein commented 4 months ago

Makes the tests less flaky by:

  1. Updates the webdriver dependencies
  2. In integration.test.ts accounts for the bug #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
bundlemon[bot] commented 4 months ago

BundleMon

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

Total files change +100.81KB 0%

Final result: :white_check_mark:

View report in BundleMon website ➡️


Current branch size history