From 4fc60b51c8f1ccf41f20eb91f1d4d52c0d64409a Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 2 Sep 2022 12:45:41 +0200 Subject: [PATCH 1/7] slow etherscan test --- apps/remix-ide-e2e/src/tests/url.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/url.test.ts b/apps/remix-ide-e2e/src/tests/url.test.ts index 2bc6fe778f..db483832eb 100644 --- a/apps/remix-ide-e2e/src/tests/url.test.ts +++ b/apps/remix-ide-e2e/src/tests/url.test.ts @@ -90,7 +90,7 @@ module.exports = { .pause(5000) .url('http://127.0.0.1:8080/#address=0x56db08fb78bc6689a1ef66efd079083fed0e4915') .refresh() - .pause(7000) + .pause(20000) .currentWorkspaceIs('etherscan-code-sample') .assert.elementPresent('*[data-id=treeViewLitreeViewItemropsten]') .assert.elementPresent('*[data-id=treeViewLitreeViewItemrinkeby]') @@ -102,7 +102,7 @@ module.exports = { }) .url('http://127.0.0.1:8080/#address=0xdac17f958d2ee523a2206206994597c13d831ec7') .refresh() - .pause(7000) + .pause(20000) .currentWorkspaceIs('etherscan-code-sample') .assert.elementPresent('*[data-id=treeViewLitreeViewItemmainnet]') .assert.elementPresent('*[data-id="treeViewLitreeViewItemmainnet/0xdac17f958d2ee523a2206206994597c13d831ec7"]') From 8ead4520bdc23ece212579f2e85d7d4dd5edc33c Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 2 Sep 2022 12:49:17 +0200 Subject: [PATCH 2/7] set flaky --- .circleci/config.yml | 2 +- apps/remix-ide-e2e/src/tests/url.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1c13a22045..2532090a56 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ version: 2.1 parameters: run_flaky_tests: type: boolean - default: false + default: true orbs: browser-tools: circleci/browser-tools@1.3.0 jobs: diff --git a/apps/remix-ide-e2e/src/tests/url.test.ts b/apps/remix-ide-e2e/src/tests/url.test.ts index db483832eb..c3942d42b0 100644 --- a/apps/remix-ide-e2e/src/tests/url.test.ts +++ b/apps/remix-ide-e2e/src/tests/url.test.ts @@ -85,7 +85,7 @@ module.exports = { }) }, - 'Should load Etherscan verified contractss from URL "address" param) #group2': function (browser: NightwatchBrowser) { + 'Should load Etherscan verified contractss from URL "address" param) #group2 #flaky': function (browser: NightwatchBrowser) { browser .pause(5000) .url('http://127.0.0.1:8080/#address=0x56db08fb78bc6689a1ef66efd079083fed0e4915') From b64ae0c6ad37b0ab671b83f515c4dcb5ed0ba9c4 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 2 Sep 2022 13:03:51 +0200 Subject: [PATCH 3/7] add logs --- apps/remix-ide-e2e/src/tests/url.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/remix-ide-e2e/src/tests/url.test.ts b/apps/remix-ide-e2e/src/tests/url.test.ts index c3942d42b0..41af75ffb7 100644 --- a/apps/remix-ide-e2e/src/tests/url.test.ts +++ b/apps/remix-ide-e2e/src/tests/url.test.ts @@ -87,6 +87,9 @@ module.exports = { 'Should load Etherscan verified contractss from URL "address" param) #group2 #flaky': function (browser: NightwatchBrowser) { browser + .captureBrowserConsoleLogs((event) => { + console.log(event.type, event.timestamp, event.args[0].value); + }) .pause(5000) .url('http://127.0.0.1:8080/#address=0x56db08fb78bc6689a1ef66efd079083fed0e4915') .refresh() From f68da7885cd0c0e87b5ac1353a3818cb958d72b9 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 2 Sep 2022 13:39:18 +0200 Subject: [PATCH 4/7] disable test --- .circleci/config.yml | 2 +- apps/remix-ide-e2e/src/tests/url.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2532090a56..1c13a22045 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ version: 2.1 parameters: run_flaky_tests: type: boolean - default: true + default: false orbs: browser-tools: circleci/browser-tools@1.3.0 jobs: diff --git a/apps/remix-ide-e2e/src/tests/url.test.ts b/apps/remix-ide-e2e/src/tests/url.test.ts index 41af75ffb7..99668ca2fc 100644 --- a/apps/remix-ide-e2e/src/tests/url.test.ts +++ b/apps/remix-ide-e2e/src/tests/url.test.ts @@ -85,7 +85,7 @@ module.exports = { }) }, - 'Should load Etherscan verified contractss from URL "address" param) #group2 #flaky': function (browser: NightwatchBrowser) { + 'Should load Etherscan verified contracts from URL "address" param) #group2': !function (browser: NightwatchBrowser) { browser .captureBrowserConsoleLogs((event) => { console.log(event.type, event.timestamp, event.args[0].value); From 8c543c9d6790bc48467ae477d4369b2e6be1e3bf Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 2 Sep 2022 13:47:02 +0200 Subject: [PATCH 5/7] mv test --- apps/remix-ide-e2e/src/tests/url.test.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/url.test.ts b/apps/remix-ide-e2e/src/tests/url.test.ts index 99668ca2fc..daf67e230b 100644 --- a/apps/remix-ide-e2e/src/tests/url.test.ts +++ b/apps/remix-ide-e2e/src/tests/url.test.ts @@ -87,9 +87,6 @@ module.exports = { 'Should load Etherscan verified contracts from URL "address" param) #group2': !function (browser: NightwatchBrowser) { browser - .captureBrowserConsoleLogs((event) => { - console.log(event.type, event.timestamp, event.args[0].value); - }) .pause(5000) .url('http://127.0.0.1:8080/#address=0x56db08fb78bc6689a1ef66efd079083fed0e4915') .refresh() @@ -251,7 +248,7 @@ module.exports = { .openFile('contracts/governance/UnionGovernor.sol') }, - 'Should execute function call from URL parameters #group2': function (browser: NightwatchBrowser) { + 'Should execute function call from URL parameters #group1': function (browser: NightwatchBrowser) { browser .switchWorkspace('default_workspace') .url('http://127.0.0.1:8080?calls=fileManager//open//contracts/3_Ballot.sol///terminal//log//log') From a85f64debea9dcc2fba9a470668ffe11b3149850 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 2 Sep 2022 13:48:19 +0200 Subject: [PATCH 6/7] update time --- apps/remix-ide-e2e/src/tests/url.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/url.test.ts b/apps/remix-ide-e2e/src/tests/url.test.ts index daf67e230b..9e8e83c39a 100644 --- a/apps/remix-ide-e2e/src/tests/url.test.ts +++ b/apps/remix-ide-e2e/src/tests/url.test.ts @@ -90,7 +90,7 @@ module.exports = { .pause(5000) .url('http://127.0.0.1:8080/#address=0x56db08fb78bc6689a1ef66efd079083fed0e4915') .refresh() - .pause(20000) + .pause(7000) .currentWorkspaceIs('etherscan-code-sample') .assert.elementPresent('*[data-id=treeViewLitreeViewItemropsten]') .assert.elementPresent('*[data-id=treeViewLitreeViewItemrinkeby]') @@ -102,7 +102,7 @@ module.exports = { }) .url('http://127.0.0.1:8080/#address=0xdac17f958d2ee523a2206206994597c13d831ec7') .refresh() - .pause(20000) + .pause(7000) .currentWorkspaceIs('etherscan-code-sample') .assert.elementPresent('*[data-id=treeViewLitreeViewItemmainnet]') .assert.elementPresent('*[data-id="treeViewLitreeViewItemmainnet/0xdac17f958d2ee523a2206206994597c13d831ec7"]') From 12f72d5f408deb34971991856e1c89cd138e6dd6 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 2 Sep 2022 13:49:22 +0200 Subject: [PATCH 7/7] rm group --- apps/remix-ide-e2e/src/tests/url.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/remix-ide-e2e/src/tests/url.test.ts b/apps/remix-ide-e2e/src/tests/url.test.ts index 9e8e83c39a..af78de69ea 100644 --- a/apps/remix-ide-e2e/src/tests/url.test.ts +++ b/apps/remix-ide-e2e/src/tests/url.test.ts @@ -85,7 +85,7 @@ module.exports = { }) }, - 'Should load Etherscan verified contracts from URL "address" param) #group2': !function (browser: NightwatchBrowser) { + 'Should load Etherscan verified contracts from URL "address" param)': !function (browser: NightwatchBrowser) { browser .pause(5000) .url('http://127.0.0.1:8080/#address=0x56db08fb78bc6689a1ef66efd079083fed0e4915')