1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 20:02:58 +01:00
metamask-extension/test/e2e
Mark Stacey adb50d1357
Fix flaky e2e tests (#7307)
* Add a delay after connecting

This addresses an intermittent test failure where the MetaMask
Notification window cannot be found. It appears to be caused by the
Send button being clicked too soon after connecting to a dapp, before
the background has had a chance to process the approval. The premature
send is ignored and the window never appears.

This delay (2 seconds) should be sufficient time for the connection to
be processed. A later 5-second delay was also reduced to 2 seconds.

* Select onboarding buttons by button text

The onboarding buttons were being selected using the classname, which
was common to all onboarding buttons. This resulting in buttons being
selected just before a page transition, leading to an error about
the element reference being stale when a click was attempted.

The CSS class selectors have been replaced by text selectors, which
are more specific and shouldn't be at risk of resolving early. They're
also easier to read.

* Remove retypeSeedPhrase function

This function was used to re-type the seed phrase in the event that a
failure occurred when confirming the seed phrase. I'm not sure what
failure this was meant to address exactly, but this contingency hasn't
been needed for some time. We can tell that it hasn't been used because
it wasn't updated for the incremental account security changes, so it
couldn't have worked since then (it would have clicked the wrong
button).
2019-10-23 14:00:16 -03:00
..
contract-test Fix recipient field of approve screen (#7171) 2019-09-16 17:05:21 -02:30
mock-3box 3box integration 2.0 (#6972) 2019-09-16 14:41:01 -02:30
send-eth-with-private-key-test I5849 incremental account security (#6874) 2019-08-02 01:27:26 -02:30
address-book.spec.js Fix flaky e2e tests (#7307) 2019-10-23 14:00:16 -03:00
ethereum-on.spec.js Fix flaky e2e tests (#7307) 2019-10-23 14:00:16 -03:00
fetch-mocks.json test:e2e - rework fetch-mocks 2019-09-10 23:04:03 +08:00
from-import-ui.spec.js Fix flaky e2e tests (#7307) 2019-10-23 14:00:16 -03:00
func.js
helpers.js lint fix 2019-09-11 00:11:49 +08:00
incremental-security.spec.js Fix flaky e2e tests (#7307) 2019-10-23 14:00:16 -03:00
metamask-responsive-ui.spec.js Fix flaky e2e tests (#7307) 2019-10-23 14:00:16 -03:00
metamask-ui.spec.js Fix flaky e2e tests (#7307) 2019-10-23 14:00:16 -03:00
run-all.sh 3box integration 2.0 (#6972) 2019-09-16 14:41:01 -02:30
run-web3.sh Replace deprecated shell-parallel with concurrently (#6807) 2019-07-09 14:09:31 -02:30
send-edit.spec.js Fix flaky e2e tests (#7307) 2019-10-23 14:00:16 -03:00
threebox.spec.js Fix flaky e2e tests (#7307) 2019-10-23 14:00:16 -03:00
web3.spec.js Fix flaky e2e tests (#7307) 2019-10-23 14:00:16 -03:00