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