|
|
@ -222,7 +222,7 @@ const tests = { |
|
|
|
.modalFooterCancelClick('udappNotify') |
|
|
|
.modalFooterCancelClick('udappNotify') |
|
|
|
}, |
|
|
|
}, |
|
|
|
// debug transaction
|
|
|
|
// debug transaction
|
|
|
|
'Should deploy Ballot to Sepolia using metamask #group3 #flaky': function (browser: NightwatchBrowser) { |
|
|
|
'Should deploy Ballot to Sepolia using metamask #group1 #flaky': function (browser: NightwatchBrowser) { |
|
|
|
browser.waitForElementPresent('*[data-id="remixIdeSidePanel"]') |
|
|
|
browser.waitForElementPresent('*[data-id="remixIdeSidePanel"]') |
|
|
|
.switchBrowserTab(1) |
|
|
|
.switchBrowserTab(1) |
|
|
|
.click('[data-testid="network-display"]') |
|
|
|
.click('[data-testid="network-display"]') |
|
|
@ -264,7 +264,7 @@ const tests = { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'do transaction #group3': function (browser: NightwatchBrowser) { |
|
|
|
'do transaction #group1': function (browser: NightwatchBrowser) { |
|
|
|
browser.waitForElementPresent('*[data-id="universalDappUiContractActionWrapper"]', 60000) |
|
|
|
browser.waitForElementPresent('*[data-id="universalDappUiContractActionWrapper"]', 60000) |
|
|
|
.clearConsole() |
|
|
|
.clearConsole() |
|
|
|
.clickInstance(0) |
|
|
|
.clickInstance(0) |
|
|
@ -291,7 +291,7 @@ const tests = { |
|
|
|
'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 #group1': function (browser: NightwatchBrowser) { |
|
|
|
let txhash |
|
|
|
let txhash |
|
|
|
browser.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000) |
|
|
|
browser.waitForElementVisible('*[data-id="remixIdeIconPanel"]', 10000) |
|
|
|
.clickLaunchIcon('pluginManager') // load debugger and source verification
|
|
|
|
.clickLaunchIcon('pluginManager') // load debugger and source verification
|
|
|
@ -317,14 +317,14 @@ const tests = { |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
'Call web3.eth.getAccounts() using Injected Provider (Metamask) #group3': function (browser: NightwatchBrowser) { |
|
|
|
'Call web3.eth.getAccounts() using Injected Provider (Metamask) #group1': function (browser: NightwatchBrowser) { |
|
|
|
if (!checkBrowserIsChrome(browser)) return |
|
|
|
if (!checkBrowserIsChrome(browser)) return |
|
|
|
browser |
|
|
|
browser |
|
|
|
.executeScriptInTerminal('web3.eth.getAccounts()') |
|
|
|
.executeScriptInTerminal('web3.eth.getAccounts()') |
|
|
|
.journalLastChildIncludes('["0x76a3ABb5a12dcd603B52Ed22195dED17ee82708f"]') |
|
|
|
.journalLastChildIncludes('["0x76a3ABb5a12dcd603B52Ed22195dED17ee82708f"]') |
|
|
|
}, |
|
|
|
}, |
|
|
|
// EIP 712 tests
|
|
|
|
// EIP 712 tests
|
|
|
|
'Test EIP 712 Signature with Injected Provider (Metamask) #group4': function (browser: NightwatchBrowser) { |
|
|
|
'Test EIP 712 Signature with Injected Provider (Metamask) #group1': function (browser: NightwatchBrowser) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.waitForElementPresent('i[id="remixRunSignMsg"]') |
|
|
|
.waitForElementPresent('i[id="remixRunSignMsg"]') |
|
|
|
.click('i[id="remixRunSignMsg"]') |
|
|
|
.click('i[id="remixRunSignMsg"]') |
|
|
|