|
|
|
@ -50,10 +50,10 @@ const tests = { |
|
|
|
|
.pause(5000) |
|
|
|
|
.switchBrowserWindow(extension_url, 'MetaMask', (browser) => { |
|
|
|
|
browser |
|
|
|
|
.waitForElementVisible('*[data-testid="page-container-footer-next"]') |
|
|
|
|
.waitForElementVisible('*[data-testid="page-container-footer-next"]', 60000) |
|
|
|
|
.click('*[data-testid="page-container-footer-next"]') // this connects the metamask account to remix
|
|
|
|
|
.pause(2000) |
|
|
|
|
.waitForElementVisible('*[data-testid="page-container-footer-next"]') |
|
|
|
|
.waitForElementVisible('*[data-testid="page-container-footer-next"]', 60000) |
|
|
|
|
.click('*[data-testid="page-container-footer-next"]') |
|
|
|
|
// .waitForElementVisible('*[data-testid="popover-close"]')
|
|
|
|
|
// .click('*[data-testid="popover-close"]')
|
|
|
|
@ -162,7 +162,7 @@ const tests = { |
|
|
|
|
.perform((done) => { |
|
|
|
|
browser.switchBrowserWindow(extension_url, 'MetaMask', (browser) => { |
|
|
|
|
browser |
|
|
|
|
.waitForElementPresent('[data-testid="page-container-footer-next"]') |
|
|
|
|
.waitForElementPresent('[data-testid="page-container-footer-next"]', 60000) |
|
|
|
|
.click('[data-testid="page-container-footer-next"]') // approve the tx
|
|
|
|
|
.switchBrowserTab(0) // back to remix
|
|
|
|
|
.waitForElementContainsText('*[data-id="terminalJournal"]', 'view on etherscan', 60000) |
|
|
|
@ -177,7 +177,7 @@ const tests = { |
|
|
|
|
.perform((done) => { // call delegate
|
|
|
|
|
browser.switchBrowserWindow(extension_url, 'MetaMask', (browser) => { |
|
|
|
|
browser |
|
|
|
|
.waitForElementPresent('[data-testid="page-container-footer-next"]') |
|
|
|
|
.waitForElementPresent('[data-testid="page-container-footer-next"]', 60000) |
|
|
|
|
.click('[data-testid="page-container-footer-next"]') // approve the tx
|
|
|
|
|
.switchBrowserTab(0) // back to remix
|
|
|
|
|
.waitForElementContainsText('*[data-id="terminalJournal"]', 'view on etherscan', 60000) |
|
|
|
|