diff --git a/apps/remix-ide-e2e/src/tests/metamask.test.ts b/apps/remix-ide-e2e/src/tests/metamask.test.ts index f674682d46..ab966d75de 100644 --- a/apps/remix-ide-e2e/src/tests/metamask.test.ts +++ b/apps/remix-ide-e2e/src/tests/metamask.test.ts @@ -251,9 +251,19 @@ const tests = { .clearTransactions() .clickLaunchIcon('udapp') .waitForElementVisible('input[placeholder="bytes32[] proposalNames"]') + .pause(2000) .setValue('input[placeholder="bytes32[] proposalNames"]', '["0x48656c6c6f20576f726c64210000000000000000000000000000000000000000"]') + .pause(1000) .click('*[data-id="Deploy - transact (not payable)"]') // deploy ballot - .pause(5000) + .pause(1000) + .waitForElementVisible({ + locateStrategy: 'xpath', + selector: "//span[@class='text-log' and contains(., 'creation of')]" + }) + .waitForElementVisible({ + locateStrategy: 'xpath', + selector: "//span[@class='text-log' and contains(., 'pending')]" + }) .saveScreenshot('./reports/screenshots/metamask_before.png') .perform((done) => { browser.switchBrowserWindow(extension_url, 'MetaMask', (browser) => {