Commit 02628d89 authored by ioedeveloper's avatar ioedeveloper

Update nth element

parent f166599d
......@@ -66,9 +66,9 @@ module.exports = {
.addFile('Untitled8.sol', sources[7]['browser/Untitled8.sol'])
.clickLaunchIcon('fileExplorers')
.clickLaunchIcon('solidity')
.waitForElementPresent('[data-id="compiledErrors"] div:nth-child(3)')
.click('[data-id="compiledErrors"] div:nth-child(3)') // select the second warning which point to ERC20 code
.pause(10000)
.waitForElementPresent('[data-id="compiledErrors"] div:nth-child(4)')
.click('[data-id="compiledErrors"] div:nth-child(4)') // select the second warning which point to ERC20 code
.pause(5000)
.getEditorValue((content) => {
browser.assert.ok(content.indexOf(`contract ERC20 is Context, IERC20`) != -1,
'current displayed content should be from the ERC20 source code')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment