1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/test/e2e
Mark Stacey 96c00df6f0
Reduce e2e test flakiness (#19507)
Three e2e tests have been updated to fix a possible race condition
causing intermittent e2e test failures.

In each of the updated tests, the test checks the current network.
The check is performed as a two-step process: locate the current
network element, then check the text to ensure it's correct.

This fails when the test driver finds the element before it re-renders.
If the test runs too quickly, it compares the text before the switch
is shown on screen, and the test fails.

Instead the tests use the element locator to describe what they want.
This tells the test driver to keep looking until the conditions are
met, ensuring the test doesn't fail unless the network switch takes
longer than the default timeout (which should not happen).

This is a good example of why we should avoid using assertions on
elements in e2e tests. Express your assertions as locators instead to
make the test more resilient in the case where the test runs before the
next render.
2023-06-08 14:34:48 -02:30
..
import-utc-json E2e test fixtures (#16061) 2022-10-28 09:42:12 +01:00
mock-page-with-disallowed-iframe Fix e2e tests 2022-05-16 18:48:20 -02:30
mock-page-with-iframe Use externally hosted phishing warning page 2022-05-16 14:40:50 -02:30
mv3 feat(17901): fix network, add-account and mv3 phishing warning issue (#19462) 2023-06-08 14:21:21 +01:00
mv3-perf-stats Capture all Error console.log events (#17710) 2023-02-23 14:27:36 +00:00
nft Remove MULTICHAIN flag for NFT badges (#19416) 2023-06-04 12:28:48 -04:00
restore Toggle option to enable/disable balance and Token rate checking for using third-party API (#16772) 2023-01-17 10:23:04 -05:00
seeder [e2e] test-dapp update to v6.0.0 (#18844) 2023-04-27 13:01:17 +02:00
send-eth-with-private-key-test chore: Adjust trailing whitespace (#15636) 2022-08-24 14:11:49 -05:00
snaps [FLASK] Rework Snaps headers and footers (#19442) 2023-06-07 15:18:49 +02:00
swaps Fixed test instability (#18174) 2023-03-16 11:06:33 +01:00
tests Reduce e2e test flakiness (#19507) 2023-06-08 14:34:48 -02:30
webdriver feature(16691): mv3 e2e test for phishing warning page when sw restarts (#19196) 2023-05-19 11:17:53 +01:00
.mocharc.js allow importing of typescript in E2E test suite (#17141) 2023-01-12 08:38:12 -06:00
benchmark.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
e2e-mocha-setup.js allow importing of typescript in E2E test suite (#17141) 2023-01-12 08:38:12 -06:00
e2e-process-report.js e2e multiple reports (#17715) 2023-02-10 19:34:01 +00:00
fixture-builder.js Handle watch asset accept and reject using ApprovalController only (#18829) 2023-06-05 21:13:22 +01:00
fixture-server.js Use deployed contracts in fixtures (#18107) 2023-03-13 14:31:14 +00:00
ganache.js [e2e] Using ganache requests to getBalance and getAccounts (#18215) 2023-03-20 10:29:18 +01:00
helpers.js feat(17901): fix network, add-account and mv3 phishing warning issue (#19462) 2023-06-08 14:21:21 +01:00
lavamoat-stats.js E2e test fixtures (#16061) 2022-10-28 09:42:12 +01:00
metamask-ui.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
mock-e2e.js Avoid resetting the mock server (#18661) 2023-04-19 15:36:23 +01:00
mv3-stats.js E2e test fixtures (#16061) 2022-10-28 09:42:12 +01:00
phishing-warning-page-server.js Use externally hosted phishing warning page 2022-05-16 14:40:50 -02:30
run-all.js Move nft e2e tests to main e2e test job (#18055) 2023-03-14 15:21:24 +00:00
run-e2e-test.js Add desktop support (#17683) 2023-02-20 17:13:12 +00:00
user-actions-benchmark.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00