From 093c69cf769876ff590bb8fb7bfa44fd01a95a69 Mon Sep 17 00:00:00 2001 From: seaona <54408225+seaona@users.noreply.github.com> Date: Fri, 18 Mar 2022 18:47:28 +0100 Subject: [PATCH] Fix flaky test: add account (#14045) --- test/e2e/tests/add-account.spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/e2e/tests/add-account.spec.js b/test/e2e/tests/add-account.spec.js index f9318cc7f..9c8603138 100644 --- a/test/e2e/tests/add-account.spec.js +++ b/test/e2e/tests/add-account.spec.js @@ -78,6 +78,7 @@ describe('Add account', function () { const detailsModal = await driver.findVisibleElement('span .modal'); // get the public address for the "second account" + await driver.waitForSelector('.qr-code__address'); const secondAccountAddress = await driver.findElement( '.qr-code__address', ); @@ -103,6 +104,7 @@ describe('Add account', function () { const secondDetailsModal = await driver.findVisibleElement( 'span .modal', ); + await driver.waitForSelector('.qr-code__address'); const thirdAccountAddress = await driver.findElement( '.qr-code__address', ); @@ -158,6 +160,7 @@ describe('Add account', function () { 'span .modal', ); // get the public address for the "second account" + await driver.waitForSelector('.qr-code__address'); const recreatedSecondAccountAddress = await driver.findElement( '.qr-code__address', ); @@ -184,6 +187,7 @@ describe('Add account', function () { ); // get the public address for the "third account" + await driver.waitForSelector('.qr-code__address'); const recreatedThirdAccountAddress = await driver.findElement( '.qr-code__address', );