1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00
metamask-extension/test/e2e/tests
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
..
account-details.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
add-account.spec.js feat(17901): fix network, add-account and mv3 phishing warning issue (#19462) 2023-06-08 14:21:21 +01:00
add-custom-network.spec.js fix(e2e): flaky test-e2e-chrome on add-custom-network.spec.js (#19487) 2023-06-07 23:39:06 +05:30
add-hide-token.spec.js Handle watch asset accept and reject using ApprovalController only (#18829) 2023-06-05 21:13:22 +01:00
address-book.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
advanced-settings.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
auto-lock.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
backup-restore.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
chain-interactions.spec.js Reduce e2e test flakiness (#19507) 2023-06-08 14:34:48 -02:30
clear-activity.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
contract-interactions.spec.js feature(17901): fix address-book Sends to an address book entry e2e against MV3 build (#19330) 2023-05-30 13:44:56 +01:00
custom-rpc-history.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
custom-token-add-approve.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
dapp-interactions.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
dapp-tx-edit.spec.js chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
edit-gas-fee.spec.js chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
encrypt-decrypt.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
ens.spec.js Rename provider to providerConfig (#18907) 2023-05-02 13:23:20 -02:30
errors.spec.js Avoid resetting the mock server (#18661) 2023-04-19 15:36:23 +01:00
eth-sign.spec.js chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
eth-subscribe.spec.js chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
failing-contract.spec.js chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
from-import-ui.spec.js feature(17901): fix import UI error (#19372) 2023-06-05 14:15:47 +01:00
incremental-security.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
localization.spec.js E2e test fixtures (#16061) 2022-10-28 09:42:12 +01:00
lock-account.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
lockdown.spec.js E2e test fixtures (#16061) 2022-10-28 09:42:12 +01:00
metamask-responsive-ui.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
metrics.spec.js Avoid resetting the mock server (#18661) 2023-04-19 15:36:23 +01:00
multiple-transactions.spec.js Fix state in confirm transaction (#17838) 2023-02-24 22:37:26 +05:30
navigate-transactions.spec.js feature(17901): fix address-book Sends to an address book entry e2e against MV3 build (#19330) 2023-05-30 13:44:56 +01:00
network-error.spec.js feat(17901): fix network, add-account and mv3 phishing warning issue (#19462) 2023-06-08 14:21:21 +01:00
onboarding.spec.js Reduce e2e test flakiness (#19507) 2023-06-08 14:34:48 -02:30
permissions.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
personal-sign.spec.js chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
phishing-detection.spec.js feature(16691): mv3 e2e test for phishing warning page when sw restarts (#19196) 2023-05-19 11:17:53 +01:00
portfolio-site.spec.js UX: Multichain: Analytics (#18674) 2023-04-27 09:28:08 -05:00
provider-api.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
security-provider.spec.js chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
send-edit.spec.js Removing flag for EIP1559 V2 support (#16446) 2022-12-09 00:07:06 +05:30
send-eth.spec.js feat(17901): fix network, add-account and mv3 phishing warning issue (#19462) 2023-06-08 14:21:21 +01:00
send-hex-address.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
send-to-contract.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
settings-general.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
settings-search.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
signature-request.spec.js chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
signin-with-ethereum.spec.js chore: refactor connect to dapp action in e2e (#19015) 2023-05-05 14:56:08 +01:00
simple-send.spec.js feature(17901): fix address-book Sends to an address book entry e2e against MV3 build (#19330) 2023-05-30 13:44:56 +01:00
state-logs.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
stuck-approved-transaction.spec.js Call onbootcleanup at the end of the tx controller constructor (#16449) 2022-11-10 09:58:27 -03:30
switch-custom-network.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00
terms-of-use.spec.js Terms of use e2e (#18861) 2023-04-28 14:37:06 +01:00
token-details.spec.js Release MultiChain 0.5 (#18903) 2023-06-01 16:14:38 -05:00