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)
.clearConsole()
.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')
.pause(5000)
.pause()
.perform((done) => { // call delegate
browser.switchBrowserWindow(extension_url, 'MetaMask', (browser) => {
browser
.maximizeWindow()
.hideMetaMaskPopup()
.pause(3000)
.pause()
.saveScreenshot('./reports/screenshots/metamask_7.png')
// .scrollAndClick('[data-testid="page-container-footer-next"]')
// .click('[data-testid="page-container-footer-next"]') // approve the tx

Loading…
Cancel
Save