From 54d4323e76c0353ee46ffaddf07b08b0349db5d3 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 3 Jun 2022 20:42:22 +0200 Subject: [PATCH] fix tests --- apps/remix-ide-e2e/src/commands/verifyContracts.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/remix-ide-e2e/src/commands/verifyContracts.ts b/apps/remix-ide-e2e/src/commands/verifyContracts.ts index bd72f8e796..d9f5a7606d 100644 --- a/apps/remix-ide-e2e/src/commands/verifyContracts.ts +++ b/apps/remix-ide-e2e/src/commands/verifyContracts.ts @@ -19,7 +19,7 @@ function verifyContracts (browser: NightwatchBrowser, compiledContractNames: str .pause(opts.wait) .pause(5000) .waitForElementPresent('*[data-id="compiledContracts"] option', 60000) - .perform((done) => { + .perform(async (done) => { if (opts.version) { browser .click('*[data-id="compilation-details"]') @@ -55,9 +55,9 @@ function verifyContracts (browser: NightwatchBrowser, compiledContractNames: str callback() }) } else { - compiledContractNames.forEach((name) => { - browser.waitForElementContainsText('[data-id="compiledContracts"]', name, 60000) - }) + for (const name in compiledContractNames) { + await browser.waitForElementContainsText('[data-id="compiledContracts"]', name, 60000) + } done() callback() }