tesst grouped

pull/5358/head
bunsenstraat 3 weeks ago
parent 73fd4ccb02
commit db6cd6677e
  1. 4
      .circleci/config.yml
  2. 6
      apps/remix-ide-e2e/src/tests/metamask.test.ts

@ -3,7 +3,7 @@ version: 2.1
parameters: parameters:
run_flaky_tests: run_flaky_tests:
type: boolean type: boolean
default: false default: true
orbs: orbs:
browser-tools: circleci/browser-tools@1.4.4 browser-tools: circleci/browser-tools@1.4.4
win: circleci/windows@5.0 win: circleci/windows@5.0
@ -784,7 +784,7 @@ workflows:
script: ["flaky.sh"] script: ["flaky.sh"]
job: ["nogroup"] job: ["nogroup"]
jobsize: ["1"] jobsize: ["1"]
parallelism: [10] parallelism: [1]
build_all: build_all:
unless: << pipeline.parameters.run_flaky_tests >> unless: << pipeline.parameters.run_flaky_tests >>
jobs: jobs:

@ -67,7 +67,7 @@ const tests = {
.switchBrowserTab(0) // back to remix .switchBrowserTab(0) // back to remix
}, },
'Should add a contract file #group1': function (browser: NightwatchBrowser) { 'Should add a contract file #flaky #group1': function (browser: NightwatchBrowser) {
browser.waitForElementVisible('*[data-id="remixIdeSidePanel"]') browser.waitForElementVisible('*[data-id="remixIdeSidePanel"]')
.clickLaunchIcon('filePanel') .clickLaunchIcon('filePanel')
.addFile('Greet.sol', sources[0]['Greet.sol']) .addFile('Greet.sol', sources[0]['Greet.sol'])
@ -193,7 +193,7 @@ const tests = {
}, },
// main network tests // main network tests
'Should connect to Ethereum Main Network using MetaMask #group2': function (browser: NightwatchBrowser) { 'Should connect to Ethereum Main Network using MetaMask #group1': function (browser: NightwatchBrowser) {
browser.waitForElementPresent('*[data-id="remixIdeSidePanel"]') browser.waitForElementPresent('*[data-id="remixIdeSidePanel"]')
.switchBrowserTab(1) .switchBrowserTab(1)
.click('[data-testid="network-display"]') .click('[data-testid="network-display"]')
@ -208,7 +208,7 @@ const tests = {
.assert.containsText('*[data-id="settingsNetworkEnv"]', 'Main (1) network') .assert.containsText('*[data-id="settingsNetworkEnv"]', 'Main (1) network')
}, },
'Should deploy contract on Ethereum Main Network using MetaMask #group2': function (browser: NightwatchBrowser) { 'Should deploy contract on Ethereum Main Network using MetaMask #group1': function (browser: NightwatchBrowser) {
browser.waitForElementPresent('*[data-id="runTabSelectAccount"] option') browser.waitForElementPresent('*[data-id="runTabSelectAccount"] option')
.clickLaunchIcon('filePanel') .clickLaunchIcon('filePanel')
.addFile('Greet.sol', sources[0]['Greet.sol']) .addFile('Greet.sol', sources[0]['Greet.sol'])

Loading…
Cancel
Save