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: flaky tests Queued Confirmations... in FF for unordered events #30031

Merged
merged 14 commits into from
Jan 31, 2025
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
// create deposit transaction in dapp 1
await createDepositTransaction(driver);

await driver.delay(2000);
await driver.delay(5000);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the buffer time needs to be a bit bigger otherwise the metric events get unordered, and we get first the signature event from the dapp2 (localhost:8081) and the asserts fail

await switchToDAppTwoAndCreateSignTypedDataRequest(driver);

Expand Down Expand Up @@ -420,7 +420,7 @@
// No dialog should appear as we already gave permissions to this network
await driver.waitForSelector({
css: '[id="chainId"]',
text: '0x539',
text: '0x3e8',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

my mistake, we should wait for the new chain id (changed 2 steps above)

});
}

Expand Down Expand Up @@ -478,4 +478,4 @@
await mockedTrackedQueueControllerEvent(server),
await mockedTrackedQueueControllerEvent(server),
];
}
}

Check failure on line 481 in test/e2e/tests/confirmations/alerts/queued-confirmations.spec.ts

View workflow job for this annotation

GitHub Actions / Test lint / Test lint

Insert `⏎`
Loading