mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
b1b6d7ae38
The metrics e2e test would fail if the segment events still weren't dispatched when the page loaded. The Segment events are sent on a set interval, so it isn't abnormal for them to lag behind the page load itself. The `waitUntilCalled` utility has been used to wait until all required events have been dispatched. The `wait-until-called` module was converted to an ES5 module, so that it could be used from an e2e test. The optional `callCount` parameter has also been added, to allow waiting for more than one call. The `segmentSpy` had to be converted to a `segmentStub`, to allow the `waitUntilCalled` utility to be used. |
||
---|---|---|
.. | ||
fixtures | ||
mock-3box | ||
send-eth-with-private-key-test | ||
tests | ||
webdriver | ||
address-book.spec.js | ||
benchmark.js | ||
ethereum-on.spec.js | ||
fixture-server.js | ||
from-import-ui.spec.js | ||
ganache.js | ||
helpers.js | ||
incremental-security.spec.js | ||
metamask-responsive-ui.spec.js | ||
metamask-ui.spec.js | ||
metrics.spec.js | ||
permissions.spec.js | ||
run-all.sh | ||
send-edit.spec.js | ||
signature-request.spec.js | ||
threebox.spec.js |