From 497c361cb7620204a95f78ad5a21ff09af85642d Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Wed, 30 Oct 2024 15:37:52 +0100 Subject: [PATCH] assertions --- apps/remix-ide-e2e/src/tests/metamask.test.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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) => {