|
|
@ -67,7 +67,7 @@ const tests = { |
|
|
|
.switchBrowserTab(0) // back to remix
|
|
|
|
.switchBrowserTab(0) // back to remix
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Should add a contract file #group1': function (browser: NightwatchBrowser) { |
|
|
|
'Should add a contract file #flaky #group1': function (browser: NightwatchBrowser) { |
|
|
|
browser.waitForElementVisible('*[data-id="remixIdeSidePanel"]') |
|
|
|
browser.waitForElementVisible('*[data-id="remixIdeSidePanel"]') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.addFile('Greet.sol', sources[0]['Greet.sol']) |
|
|
|
.addFile('Greet.sol', sources[0]['Greet.sol']) |
|
|
@ -193,7 +193,7 @@ const tests = { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// main network tests
|
|
|
|
// main network tests
|
|
|
|
'Should connect to Ethereum Main Network using MetaMask #group2': function (browser: NightwatchBrowser) { |
|
|
|
'Should connect to Ethereum Main Network using MetaMask #group1': 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"]') |
|
|
@ -208,7 +208,7 @@ const tests = { |
|
|
|
.assert.containsText('*[data-id="settingsNetworkEnv"]', 'Main (1) network') |
|
|
|
.assert.containsText('*[data-id="settingsNetworkEnv"]', 'Main (1) network') |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
'Should deploy contract on Ethereum Main Network using MetaMask #group2': function (browser: NightwatchBrowser) { |
|
|
|
'Should deploy contract on Ethereum Main Network using MetaMask #group1': function (browser: NightwatchBrowser) { |
|
|
|
browser.waitForElementPresent('*[data-id="runTabSelectAccount"] option') |
|
|
|
browser.waitForElementPresent('*[data-id="runTabSelectAccount"] option') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.clickLaunchIcon('filePanel') |
|
|
|
.addFile('Greet.sol', sources[0]['Greet.sol']) |
|
|
|
.addFile('Greet.sol', sources[0]['Greet.sol']) |
|
|
|