From 02628d894b87a8d71d90f303b741f4424c3457eb Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Fri, 20 Nov 2020 09:05:41 +0100 Subject: [PATCH] Update nth element --- apps/remix-ide-e2e/src/tests/solidityImport.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/solidityImport.test.ts b/apps/remix-ide-e2e/src/tests/solidityImport.test.ts index f143789898..e559e7805f 100644 --- a/apps/remix-ide-e2e/src/tests/solidityImport.test.ts +++ b/apps/remix-ide-e2e/src/tests/solidityImport.test.ts @@ -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')