set to flaky

pull/5106/head
bunsenstraat 3 months ago
parent cbe8fef36c
commit b7518fffef
  1. 2
      .circleci/config.yml
  2. 7
      apps/remix-ide-e2e/src/tests/runAndDeploy.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

@ -153,7 +153,7 @@ module.exports = {
.waitForElementContainsText('[data-id="treeViewLi0"]', 'uint256: 10') .waitForElementContainsText('[data-id="treeViewLi0"]', 'uint256: 10')
}, },
'Should save state after running web3 script #group4': function (browser: NightwatchBrowser) { 'Should save state after running web3 script #flaky #group4': function (browser: NightwatchBrowser) {
browser browser
.clickLaunchIcon('settings') .clickLaunchIcon('settings')
.waitForElementPresent('[data-id="settingsTabGenerateContractMetadataLabel"]') .waitForElementPresent('[data-id="settingsTabGenerateContractMetadataLabel"]')
@ -163,16 +163,17 @@ module.exports = {
.click('.remixui_compilerConfigSection') .click('.remixui_compilerConfigSection')
.setValue('#evmVersionSelector', 'london') .setValue('#evmVersionSelector', 'london')
.click('*[data-id="compilerContainerCompileBtn"]') .click('*[data-id="compilerContainerCompileBtn"]')
.pause(5000)
.clickLaunchIcon('udapp') .clickLaunchIcon('udapp')
.switchEnvironment('vm-london') .switchEnvironment('vm-london')
.clickLaunchIcon('filePanel') .clickLaunchIcon('filePanel')
.waitForElementVisible('*[data-id="treeViewLitreeViewItemscripts"]')
.click('*[data-id="treeViewLitreeViewItemscripts"]') .click('*[data-id="treeViewLitreeViewItemscripts"]')
.waitForElementVisible('*[data-id="treeViewLitreeViewItemscripts/deploy_with_web3.ts"]')
.openFile('scripts/deploy_with_web3.ts') .openFile('scripts/deploy_with_web3.ts')
.click('[data-id="play-editor"]') .click('[data-id="play-editor"]')
.waitForElementPresent('[data-id="treeViewDivDraggableItem.states/vm-london/state.json"]') .waitForElementPresent('[data-id="treeViewDivDraggableItem.states/vm-london/state.json"]')
.click('[data-id="treeViewDivDraggableItem.states/vm-london/state.json"]') .click('[data-id="treeViewDivDraggableItem.states/vm-london/state.json"]')
.pause(100000) .pause(1000)
.getEditorValue((content) => { .getEditorValue((content) => {
browser browser
.assert.ok(content.includes('"latestBlockNumber": "0x1"'), 'State is saved') .assert.ok(content.includes('"latestBlockNumber": "0x1"'), 'State is saved')

Loading…
Cancel
Save