|
|
@ -70,8 +70,8 @@ module.exports = { |
|
|
|
'Should connect to Ropsten Test Network using MetaMask': function (browser) { |
|
|
|
'Should connect to Ropsten Test Network using MetaMask': function (browser) { |
|
|
|
const runtimeBrowser = browser.capabilities.browserName |
|
|
|
const runtimeBrowser = browser.capabilities.browserName |
|
|
|
|
|
|
|
|
|
|
|
runtimeBrowser === 'chrome' ? |
|
|
|
runtimeBrowser === 'chrome' |
|
|
|
browser.waitForElementPresent('*[data-id="remixIdeSidePanel"]') |
|
|
|
? browser.waitForElementPresent('*[data-id="remixIdeSidePanel"]') |
|
|
|
.setupMetamask(passphrase, password) |
|
|
|
.setupMetamask(passphrase, password) |
|
|
|
.click('.network-indicator__down-arrow') |
|
|
|
.click('.network-indicator__down-arrow') |
|
|
|
.useXpath().click("//span[text()='Ropsten Test Network']") |
|
|
|
.useXpath().click("//span[text()='Ropsten Test Network']") |
|
|
@ -95,8 +95,8 @@ module.exports = { |
|
|
|
'Should deploy contract on Ropsten Test Network using MetaMask': function (browser) { |
|
|
|
'Should deploy contract on Ropsten Test Network using MetaMask': function (browser) { |
|
|
|
const runtimeBrowser = browser.capabilities.browserName |
|
|
|
const runtimeBrowser = browser.capabilities.browserName |
|
|
|
|
|
|
|
|
|
|
|
runtimeBrowser === 'chrome' ? |
|
|
|
runtimeBrowser === 'chrome' |
|
|
|
browser.waitForElementPresent('*[data-id="runTabSelectAccount"] option') |
|
|
|
? browser.waitForElementPresent('*[data-id="runTabSelectAccount"] option') |
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
.switchFile('browser/Greet.sol') |
|
|
|
.switchFile('browser/Greet.sol') |
|
|
|
.clickLaunchIcon('udapp') |
|
|
|
.clickLaunchIcon('udapp') |
|
|
@ -116,8 +116,8 @@ module.exports = { |
|
|
|
'Should run low level interaction (fallback function) on Ropsten Test Network using MetaMask': function (browser) { |
|
|
|
'Should run low level interaction (fallback function) on Ropsten Test Network using MetaMask': function (browser) { |
|
|
|
const runtimeBrowser = browser.capabilities.browserName |
|
|
|
const runtimeBrowser = browser.capabilities.browserName |
|
|
|
|
|
|
|
|
|
|
|
runtimeBrowser === 'chrome' ? |
|
|
|
runtimeBrowser === 'chrome' |
|
|
|
browser.waitForElementPresent('*[data-id="remixIdeSidePanel"]') |
|
|
|
? browser.waitForElementPresent('*[data-id="remixIdeSidePanel"]') |
|
|
|
.waitForElementPresent('*[data-id="universalDappUiTitleExpander"]') |
|
|
|
.waitForElementPresent('*[data-id="universalDappUiTitleExpander"]') |
|
|
|
.click('*[data-id="universalDappUiTitleExpander"]') |
|
|
|
.click('*[data-id="universalDappUiTitleExpander"]') |
|
|
|
.waitForElementPresent('*[data-id="pluginManagerSettingsDeployAndRunLLTxSendTransaction"]') |
|
|
|
.waitForElementPresent('*[data-id="pluginManagerSettingsDeployAndRunLLTxSendTransaction"]') |
|
|
@ -136,8 +136,8 @@ module.exports = { |
|
|
|
'Should connect to Ethereum Main Network using MetaMask': function (browser) { |
|
|
|
'Should connect to Ethereum Main Network using MetaMask': function (browser) { |
|
|
|
const runtimeBrowser = browser.capabilities.browserName |
|
|
|
const runtimeBrowser = browser.capabilities.browserName |
|
|
|
|
|
|
|
|
|
|
|
runtimeBrowser === 'chrome' ? |
|
|
|
runtimeBrowser === 'chrome' |
|
|
|
browser.waitForElementPresent('*[data-id="remixIdeSidePanel"]') |
|
|
|
? browser.waitForElementPresent('*[data-id="remixIdeSidePanel"]') |
|
|
|
.switchBrowserTab(2) |
|
|
|
.switchBrowserTab(2) |
|
|
|
.waitForElementPresent('.network-indicator__down-arrow') |
|
|
|
.waitForElementPresent('.network-indicator__down-arrow') |
|
|
|
.click('.network-indicator__down-arrow') |
|
|
|
.click('.network-indicator__down-arrow') |
|
|
@ -158,8 +158,8 @@ module.exports = { |
|
|
|
'Should deploy contract on Ethereum Main Network using MetaMask': function (browser) { |
|
|
|
'Should deploy contract on Ethereum Main Network using MetaMask': function (browser) { |
|
|
|
const runtimeBrowser = browser.capabilities.browserName |
|
|
|
const runtimeBrowser = browser.capabilities.browserName |
|
|
|
|
|
|
|
|
|
|
|
runtimeBrowser === 'chrome' ? |
|
|
|
runtimeBrowser === 'chrome' |
|
|
|
browser.waitForElementPresent('*[data-id="runTabSelectAccount"] option') |
|
|
|
? browser.waitForElementPresent('*[data-id="runTabSelectAccount"] option') |
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
.clickLaunchIcon('fileExplorers') |
|
|
|
.switchFile('browser/Greet.sol') |
|
|
|
.switchFile('browser/Greet.sol') |
|
|
|
.clickLaunchIcon('udapp') |
|
|
|
.clickLaunchIcon('udapp') |
|
|
|