partest
bunsenstraat 3 weeks ago committed by bunsenstraat
parent d0095e3942
commit 8deac943f7
  1. 4
      apps/remix-ide-e2e/src/tests/metamask.test.ts

@ -276,14 +276,14 @@ const tests = {
.clickInstance(0) .clickInstance(0)
.clickFunction('giveRightToVote - 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() .pause(5000)
.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() .pause(5000)
.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