partest
bunsenstraat 3 weeks ago
parent e2d071ea1d
commit 79bba21355
  1. 6
      apps/remix-ide-e2e/src/tests/metamask.test.ts

@ -274,16 +274,16 @@ const tests = {
.waitForElementPresent('*[data-id="universalDappUiContractActionWrapper"]', 60000) .waitForElementPresent('*[data-id="universalDappUiContractActionWrapper"]', 60000)
.clearConsole() .clearConsole()
.clickInstance(0) .clickInstance(0)
.clickFunction('delegate - transact (not payable)', { types: 'address to', values: '"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"' }) .clickFunction('giveRightToVote - transact (not payable)', { types: 'address to', values: '"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"' })
.saveScreenshot('./reports/screenshots/metamask_6.png') .saveScreenshot('./reports/screenshots/metamask_6.png')
.pause(5000) .pause()
.perform((done) => { // call delegate .perform((done) => { // call delegate
browser.switchBrowserWindow(extension_url, 'MetaMask', (browser) => { browser.switchBrowserWindow(extension_url, 'MetaMask', (browser) => {
browser browser
.maximizeWindow() .maximizeWindow()
.hideMetaMaskPopup() .hideMetaMaskPopup()
.pause(3000) .pause()
.saveScreenshot('./reports/screenshots/metamask_7.png') .saveScreenshot('./reports/screenshots/metamask_7.png')
// .scrollAndClick('[data-testid="page-container-footer-next"]') // .scrollAndClick('[data-testid="page-container-footer-next"]')
// .click('[data-testid="page-container-footer-next"]') // approve the tx // .click('[data-testid="page-container-footer-next"]') // approve the tx

Loading…
Cancel
Save