Skip to content

Commit 8514b58

Browse files
committed
click on right element
1 parent dff3022 commit 8514b58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/remix-ide-e2e/src/tests/solidityImport.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ module.exports = {
7272
.addFile('Untitled8.sol', sources[7]['browser/Untitled8.sol'])
7373
.clickLaunchIcon('fileExplorers')
7474
.clickLaunchIcon('solidity')
75-
.waitForElementPresent('[data-id="compiledErrors"] div:nth-child(4)')
76-
.click('[data-id="compiledErrors"] div:nth-child(4)') // select the second warning which point to ERC20 code
75+
.waitForElementPresent('[data-id="compiledErrors"] div:nth-child(3)', 45000)
76+
.scrollAndClick('[data-id="compiledErrors"] div:nth-child(3)') // click on error which point to ERC20 code
7777
.pause(5000)
7878
.getEditorValue((content) => {
7979
browser.assert.ok(content.indexOf(`contract ERC20 is Context, IERC20`) != -1,

0 commit comments

Comments
 (0)