1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00
metamask-extension/test/lib
Mark Stacey b1b6d7ae38
Fix intermittent metrics e2e test failure (#9980)
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.
2020-12-03 14:30:50 -03:30
..
migrations Add prettier-plugin-sort-json (#9450) 2020-09-23 12:21:42 -02:30
createTxMeta.js expand transaction constants coverage (#9790) 2020-11-07 01:38:12 -06:00
mock-encryptor.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
render-helpers.js [RFC] add prettier to eslint (#8595) 2020-11-02 17:41:28 -06:00
wait-until-called.js Fix intermittent metrics e2e test failure (#9980) 2020-12-03 14:30:50 -03:30