click on right element

pull/835/head
aniket-engg 4 years ago committed by Aniket
parent dff3022b7d
commit 8514b58587
  1. 4
      apps/remix-ide-e2e/src/tests/solidityImport.test.ts

@ -72,8 +72,8 @@ 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(4)') .waitForElementPresent('[data-id="compiledErrors"] div:nth-child(3)', 45000)
.click('[data-id="compiledErrors"] div:nth-child(4)') // select the second warning which point to ERC20 code .scrollAndClick('[data-id="compiledErrors"] div:nth-child(3)') // click on error which point to ERC20 code
.pause(5000) .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,

Loading…
Cancel
Save