Fixed linting error

pull/5370/head
ioedeveloper 5 years ago committed by yann300
parent 7aa2f00763
commit 45c2e5b275
  1. 2
      nightwatch.js
  2. 20
      test-browser/tests/runAndDeploy.js

@ -2,7 +2,7 @@
require('@babel/register')()
const crxFile = require('fs').readFileSync('./test-browser/extensions/chrome/metamask.crx')
const metamaskExtension = new Buffer.from(crxFile).toString('base64')
const metamaskExtension = new Buffer.from(crxFile).toString('base64') // eslint-disable-line
module.exports = {
'src_folders': ['test-browser/tests'],

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

Loading…
Cancel
Save