Skip to content

Commit

Permalink
fixing e2e failure
Browse files Browse the repository at this point in the history
  • Loading branch information
NiranjanaBinoy committed Sep 2, 2024
1 parent 83df5bd commit 7f46ba7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/e2e/tests/metrics/attribution/marketing-cookieid.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ describe('Marketing cookieId', function (this: Suite) {
await unlockWallet(driver);

await driver.openNewPage(`http://127.0.0.1:8080`);
// wait for state to update
await driver.delay(regularDelayMs);
await driver.switchToWindowWithTitle(
WINDOW_TITLES.ExtensionInFullScreenView,
);
// wait for state to update
await driver.delay(regularDelayMs);

const uiState = await getCleanAppState(driver);
assert.equal(uiState.metamask.marketingCampaignCookieId, 12345);
Expand Down Expand Up @@ -113,11 +113,11 @@ describe('Marketing cookieId', function (this: Suite) {
await unlockWallet(driver);

await driver.openNewPage(`http://127.0.0.1:8080`);
// wait for state to update
await driver.delay(regularDelayMs);
await driver.switchToWindowWithTitle(
WINDOW_TITLES.ExtensionInFullScreenView,
);
// wait for state to update
await driver.delay(regularDelayMs);

const uiState = await getCleanAppState(driver);
assert.equal(uiState.metamask.marketingCampaignCookieId, null);
Expand Down Expand Up @@ -150,11 +150,11 @@ describe('Marketing cookieId', function (this: Suite) {
await unlockWallet(driver);

await driver.openNewPage(`http://127.0.0.1:8080`);
// wait for state to update
await driver.delay(regularDelayMs);
await driver.switchToWindowWithTitle(
WINDOW_TITLES.ExtensionInFullScreenView,
);
// wait for state to update
await driver.delay(regularDelayMs);

const uiState = await getCleanAppState(driver);
assert.equal(uiState.metamask.marketingCampaignCookieId, null);
Expand Down Expand Up @@ -191,11 +191,11 @@ describe('Marketing cookieId', function (this: Suite) {
await unlockWallet(driver);

await driver.openNewPage(`http://127.0.0.1:8080`);
// wait for state to update
await driver.delay(regularDelayMs);
await driver.switchToWindowWithTitle(
WINDOW_TITLES.ExtensionInFullScreenView,
);
// wait for state to update
await driver.delay(regularDelayMs);

let uiState = await getCleanAppState(driver);
assert.equal(uiState.metamask.marketingCampaignCookieId, 12345);
Expand Down

0 comments on commit 7f46ba7

Please sign in to comment.