From 0ccb2d4d7122a2537685cbb0c3eace628a02f440 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Tue, 20 Sep 2022 17:57:38 +0200 Subject: [PATCH] import test --- .circleci/config.yml | 2 +- apps/remix-ide-e2e/src/tests/debugger.test.ts | 2 +- .../src/tests/solidityImport.test.ts | 22 ++++++++++++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6a9604ef9b..e4934d998e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2.1 parameters: run_flaky_tests: type: boolean - default: true + default: false orbs: browser-tools: circleci/browser-tools@1.4.0 jobs: diff --git a/apps/remix-ide-e2e/src/tests/debugger.test.ts b/apps/remix-ide-e2e/src/tests/debugger.test.ts index 6918f4a669..3a1f00e0f9 100644 --- a/apps/remix-ide-e2e/src/tests/debugger.test.ts +++ b/apps/remix-ide-e2e/src/tests/debugger.test.ts @@ -12,7 +12,7 @@ module.exports = { return sources }, - 'Should launch debugger #group1 #flaky': function (browser: NightwatchBrowser) { + 'Should launch debugger #group1': function (browser: NightwatchBrowser) { browser.addFile('blah.sol', sources[0]['blah.sol']) .pause(4000) .clickLaunchIcon('solidity').click('*[data-id="compilerContainerCompileBtn"]') diff --git a/apps/remix-ide-e2e/src/tests/solidityImport.test.ts b/apps/remix-ide-e2e/src/tests/solidityImport.test.ts index 3d2089fc8c..8c2d94072a 100644 --- a/apps/remix-ide-e2e/src/tests/solidityImport.test.ts +++ b/apps/remix-ide-e2e/src/tests/solidityImport.test.ts @@ -27,7 +27,27 @@ module.exports = { 'Test Failed Import #group1': function (browser: NightwatchBrowser) { browser.addFile('Untitled3.sol', sources[2]['Untitled3.sol']) .clickLaunchIcon('solidity') - .assert.containsText('#compileTabView .error pre', 'not found Untitled11.sol') + .click('[data-id="compilerContainerCompileBtn"]') + .isVisible({ + selector: "//span[contains(.,'not found Untitled11')]", + locateStrategy: 'xpath', + timeout: 120000, + suppressNotFoundErrors: true + }) + .click('[data-id="compilerContainerCompileBtn"]') + .isVisible({ + selector: "//span[contains(.,'not found Untitled11')]", + locateStrategy: 'xpath', + timeout: 120000, + suppressNotFoundErrors: true + }) + .click('[data-id="compilerContainerCompileBtn"]') + .waitForElementVisible({ + selector: "//span[contains(.,'not found Untitled11')]", + locateStrategy: 'xpath', + timeout: 120000, + }) + }, 'Test GitHub Import - from master branch #group1': function (browser: NightwatchBrowser) {