Update nth element

pull/633/head
ioedeveloper 4 years ago committed by Liana Husikyan
parent bc27b8ebd4
commit d3ea60f657
  1. 6
      apps/remix-ide-e2e/src/tests/solidityImport.test.ts

@ -66,9 +66,9 @@ module.exports = {
.addFile('Untitled8.sol', sources[7]['browser/Untitled8.sol']) .addFile('Untitled8.sol', sources[7]['browser/Untitled8.sol'])
.clickLaunchIcon('fileExplorers') .clickLaunchIcon('fileExplorers')
.clickLaunchIcon('solidity') .clickLaunchIcon('solidity')
.waitForElementPresent('[data-id="compiledErrors"] div:nth-child(3)') .waitForElementPresent('[data-id="compiledErrors"] div:nth-child(4)')
.click('[data-id="compiledErrors"] div:nth-child(3)') // select the second warning which point to ERC20 code .click('[data-id="compiledErrors"] div:nth-child(4)') // select the second warning which point to ERC20 code
.pause(10000) .pause(5000)
.getEditorValue((content) => { .getEditorValue((content) => {
browser.assert.ok(content.indexOf(`contract ERC20 is Context, IERC20`) != -1, browser.assert.ok(content.indexOf(`contract ERC20 is Context, IERC20`) != -1,
'current displayed content should be from the ERC20 source code') 'current displayed content should be from the ERC20 source code')

Loading…
Cancel
Save