From b561d62bbe54609632d8271a01b41d6e2630107d Mon Sep 17 00:00:00 2001 From: chloeYue <105063779+chloeYue@users.noreply.github.com> Date: Thu, 21 Sep 2023 18:18:33 +0200 Subject: [PATCH] Stabilize e2e test (#20987) --- test/e2e/tests/ipfs-toggle.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e/tests/ipfs-toggle.spec.js b/test/e2e/tests/ipfs-toggle.spec.js index 149442b4ce91..74cfa4fb6122 100644 --- a/test/e2e/tests/ipfs-toggle.spec.js +++ b/test/e2e/tests/ipfs-toggle.spec.js @@ -57,7 +57,9 @@ describe('Settings', function () { tag: 'button', }); // should render image now - const nftImage = await driver.findElement('[data-testid="nft-image"]'); + const nftImage = await driver.findVisibleElement( + '[data-testid="nft-image"]', + ); assert.equal(await nftImage.isDisplayed(), true); }, );