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')() require('@babel/register')()
const crxFile = require('fs').readFileSync('./test-browser/extensions/chrome/metamask.crx') 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 = { module.exports = {
'src_folders': ['test-browser/tests'], 'src_folders': ['test-browser/tests'],

@ -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')

Loading…
Cancel
Save