Skip to content

Commit

Permalink
Add E2E testIdentifier randomness between test retries
Browse files Browse the repository at this point in the history
  • Loading branch information
igneel64 committed Aug 16, 2023
1 parent f717666 commit d5d7da7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@snowplow/javascript-tracker",
"comment": "",
"type": "none"
}
],
"packageName": "@snowplow/javascript-tracker"
}
3 changes: 2 additions & 1 deletion trackers/javascript-tracker/test/integration/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export async function pageSetup() {
if (!dockerUrl) {
throw 'dockerInstanceUrl not available in `browser.sharedStore`';
}
const testIdentifier = browser.capabilities.browserName + '_' + browser.capabilities.browserVersion;
const testIdentifier =
browser.capabilities.browserName + '_' + browser.capabilities.browserVersion + '_' + Math.random();
await browser.url('/index.html');
await browser.setCookies([
{ name: 'container', value: dockerUrl },
Expand Down

0 comments on commit d5d7da7

Please sign in to comment.