Add delay for file switch

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

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

Loading…
Cancel
Save