partest
bunsenstraat 3 weeks ago
parent 8cda3fc649
commit e2d071ea1d
  1. 30
      apps/remix-ide-e2e/src/tests/metamask.test.ts

@ -260,11 +260,14 @@ const tests = {
.maximizeWindow()
.hideMetaMaskPopup()
.saveScreenshot('./reports/screenshots/metamask_4.png')
.pause(3000)
.scrollAndClick('[data-testid="page-container-footer-next"]')
.click('[data-testid="page-container-footer-next"]') // approve the tx
.pause(2000)
.switchBrowserTab(0) // back to remix
.waitForElementContainsText('*[data-id="terminalJournal"]', 'view on etherscan', 60000)
.waitForElementContainsText('*[data-id="terminalJournal"]', 'from: 0x76a...2708f', 60000)
.saveScreenshot('./reports/screenshots/metamask_5.png')
.perform(() => done())
})
})
@ -272,27 +275,30 @@ const tests = {
.clearConsole()
.clickInstance(0)
.clickFunction('delegate - transact (not payable)', { types: 'address to', values: '"0x4b0897b0513fdc7c541b6d9d7e929c4e5364d2db"' })
.saveScreenshot('./reports/screenshots/metamask_6.png')
.pause(5000)
.perform((done) => { // call delegate
browser.switchBrowserWindow(extension_url, 'MetaMask', (browser) => {
browser
.maximizeWindow()
.hideMetaMaskPopup()
.saveScreenshot('./reports/screenshots/metamask_5.png')
.scrollAndClick('[data-testid="page-container-footer-next"]')
.click('[data-testid="page-container-footer-next"]') // approve the tx
.pause(2000)
.switchBrowserTab(0) // back to remix
.waitForElementContainsText('*[data-id="terminalJournal"]', 'view on etherscan', 60000)
.waitForElementContainsText('*[data-id="terminalJournal"]', 'from: 0x76a...2708f', 60000)
.pause(3000)
.saveScreenshot('./reports/screenshots/metamask_7.png')
// .scrollAndClick('[data-testid="page-container-footer-next"]')
// .click('[data-testid="page-container-footer-next"]') // approve the tx
// .pause(2000)
// .switchBrowserTab(0) // back to remix
// .waitForElementContainsText('*[data-id="terminalJournal"]', 'view on etherscan', 60000)
// .waitForElementContainsText('*[data-id="terminalJournal"]', 'from: 0x76a...2708f', 60000)
.perform(() => done())
})
})
.testFunction('last',
{
status: '0x1 Transaction mined and execution succeed',
'decoded input': { 'address to': '0x4B0897b0513fdC7C541B6d9D7E929C4e5364D2dB' }
})
//.testFunction('last',
// {
// status: '0x1 Transaction mined and execution succeed',
// 'decoded input': { 'address to': '0x4B0897b0513fdC7C541B6d9D7E929C4e5364D2dB' }
// })
},
'Should debug Sepolia transaction with source highlighting MetaMask #group3': !function (browser: NightwatchBrowser) {
let txhash

Loading…
Cancel
Save