Commit f166599d authored by ioedeveloper's avatar ioedeveloper

Add delay for file switch

parent 007b15f9
...@@ -68,8 +68,8 @@ module.exports = { ...@@ -68,8 +68,8 @@ module.exports = {
.clickLaunchIcon('solidity') .clickLaunchIcon('solidity')
.waitForElementPresent('[data-id="compiledErrors"] div:nth-child(3)') .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 .click('[data-id="compiledErrors"] div:nth-child(3)') // select the second warning which point to ERC20 code
.pause(10000)
.getEditorValue((content) => { .getEditorValue((content) => {
console.log('content: ', 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')
}) })
......
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