partest
bunsenstraat 4 weeks ago
parent 82f5ed24b9
commit 497c361cb7
  1. 12
      apps/remix-ide-e2e/src/tests/metamask.test.ts

@ -251,9 +251,19 @@ const tests = {
.clearTransactions() .clearTransactions()
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')
.waitForElementVisible('input[placeholder="bytes32[] proposalNames"]') .waitForElementVisible('input[placeholder="bytes32[] proposalNames"]')
.pause(2000)
.setValue('input[placeholder="bytes32[] proposalNames"]', '["0x48656c6c6f20576f726c64210000000000000000000000000000000000000000"]') .setValue('input[placeholder="bytes32[] proposalNames"]', '["0x48656c6c6f20576f726c64210000000000000000000000000000000000000000"]')
.pause(1000)
.click('*[data-id="Deploy - transact (not payable)"]') // deploy ballot .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') .saveScreenshot('./reports/screenshots/metamask_before.png')
.perform((done) => { .perform((done) => {
browser.switchBrowserWindow(extension_url, 'MetaMask', (browser) => { browser.switchBrowserWindow(extension_url, 'MetaMask', (browser) => {

Loading…
Cancel
Save