mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add delay to account for remote call made by trezor keyring (#12913)
This commit is contained in:
parent
a020281c96
commit
e25c34e86b
@ -1,5 +1,5 @@
|
||||
const { strict: assert } = require('assert');
|
||||
const { withFixtures, regularDelayMs } = require('../helpers');
|
||||
const { withFixtures, regularDelayMs, largeDelayMs } = require('../helpers');
|
||||
const enLocaleMessages = require('../../../app/_locales/en/messages.json');
|
||||
|
||||
describe('Metamask Import UI', function () {
|
||||
@ -318,6 +318,7 @@ describe('Metamask Import UI', function () {
|
||||
|
||||
// should open the TREZOR Connect popup
|
||||
await driver.clickElement('.hw-connect__btn:nth-of-type(2)');
|
||||
await driver.delay(largeDelayMs * 2);
|
||||
await driver.clickElement({ text: 'Continue', tag: 'button' });
|
||||
await driver.waitUntilXWindowHandles(2);
|
||||
const allWindows = await driver.getAllWindowHandles();
|
||||
|
Loading…
x
Reference in New Issue
Block a user