1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/test/e2e
Mark Stacey 01f1f403ce Add timeout to wait-until-called (#9996)
The `waitUntilCalled` utility now has a timeout. It will now throw an
error if the stub is not called enough times, rather than blocking
forever.

The return type had to be changed to a function, so that we could throw
when the timeout is triggered. I tried returning an error that rejected
first, but if you don't handle the error synchronously Node.js will
consider it to be an unhandled Promise rejected (even if it _is_
handled later on).

I worked around this by resolving in the timeout case as well, so that
there is never a "deferred" Promise exception in the timeout case. The
returned function re-throws the error if it's given. That way there is
never any unhandled Promise rejection.
2020-12-09 12:17:46 -03:30
..
fixtures Add metrics e2e test (#9784) 2020-12-01 17:54:56 -03:30
mock-3box [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
send-eth-with-private-key-test I5849 incremental account security (#6874) 2019-08-02 01:27:26 -02:30
tests Move initial e2e navitation into individual tests (#9979) 2020-12-03 14:00:51 -03:30
webdriver Move initial e2e navitation into individual tests (#9979) 2020-12-03 14:00:51 -03:30
address-book.spec.js Move initial e2e navitation into individual tests (#9979) 2020-12-03 14:00:51 -03:30
benchmark.js Move initial e2e navitation into individual tests (#9979) 2020-12-03 14:00:51 -03:30
ethereum-on.spec.js Move initial e2e navitation into individual tests (#9979) 2020-12-03 14:00:51 -03:30
fixture-server.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
from-import-ui.spec.js Move initial e2e navitation into individual tests (#9979) 2020-12-03 14:00:51 -03:30
ganache.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
helpers.js Fix intermittent metrics e2e test failure (#9980) 2020-12-03 14:30:50 -03:30
incremental-security.spec.js Move initial e2e navitation into individual tests (#9979) 2020-12-03 14:00:51 -03:30
metamask-responsive-ui.spec.js Move initial e2e navitation into individual tests (#9979) 2020-12-03 14:00:51 -03:30
metamask-ui.spec.js Move initial e2e navitation into individual tests (#9979) 2020-12-03 14:00:51 -03:30
metrics.spec.js Add timeout to wait-until-called (#9996) 2020-12-09 12:17:46 -03:30
permissions.spec.js Move initial e2e navitation into individual tests (#9979) 2020-12-03 14:00:51 -03:30
run-all.sh Retry e2e tests 3 times (#9070) 2020-07-23 20:01:42 -02:30
send-edit.spec.js Move initial e2e navitation into individual tests (#9979) 2020-12-03 14:00:51 -03:30
signature-request.spec.js Move initial e2e navitation into individual tests (#9979) 2020-12-03 14:00:51 -03:30
threebox.spec.js Move initial e2e navitation into individual tests (#9979) 2020-12-03 14:00:51 -03:30