mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Fix flaky test: add account (#14045)
This commit is contained in:
parent
22306826ff
commit
093c69cf76
@ -78,6 +78,7 @@ describe('Add account', function () {
|
|||||||
|
|
||||||
const detailsModal = await driver.findVisibleElement('span .modal');
|
const detailsModal = await driver.findVisibleElement('span .modal');
|
||||||
// get the public address for the "second account"
|
// get the public address for the "second account"
|
||||||
|
await driver.waitForSelector('.qr-code__address');
|
||||||
const secondAccountAddress = await driver.findElement(
|
const secondAccountAddress = await driver.findElement(
|
||||||
'.qr-code__address',
|
'.qr-code__address',
|
||||||
);
|
);
|
||||||
@ -103,6 +104,7 @@ describe('Add account', function () {
|
|||||||
const secondDetailsModal = await driver.findVisibleElement(
|
const secondDetailsModal = await driver.findVisibleElement(
|
||||||
'span .modal',
|
'span .modal',
|
||||||
);
|
);
|
||||||
|
await driver.waitForSelector('.qr-code__address');
|
||||||
const thirdAccountAddress = await driver.findElement(
|
const thirdAccountAddress = await driver.findElement(
|
||||||
'.qr-code__address',
|
'.qr-code__address',
|
||||||
);
|
);
|
||||||
@ -158,6 +160,7 @@ describe('Add account', function () {
|
|||||||
'span .modal',
|
'span .modal',
|
||||||
);
|
);
|
||||||
// get the public address for the "second account"
|
// get the public address for the "second account"
|
||||||
|
await driver.waitForSelector('.qr-code__address');
|
||||||
const recreatedSecondAccountAddress = await driver.findElement(
|
const recreatedSecondAccountAddress = await driver.findElement(
|
||||||
'.qr-code__address',
|
'.qr-code__address',
|
||||||
);
|
);
|
||||||
@ -184,6 +187,7 @@ describe('Add account', function () {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// get the public address for the "third account"
|
// get the public address for the "third account"
|
||||||
|
await driver.waitForSelector('.qr-code__address');
|
||||||
const recreatedThirdAccountAddress = await driver.findElement(
|
const recreatedThirdAccountAddress = await driver.findElement(
|
||||||
'.qr-code__address',
|
'.qr-code__address',
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user