set flaky test

pull/2362/head
filip mertens 3 years ago
parent a83f47c5d0
commit 1421059447
  1. 2
      .circleci/config.yml
  2. 11
      apps/remix-ide-e2e/src/tests/workspace.test.ts

@ -6,7 +6,7 @@ version: 2.1
parameters:
run_flaky_tests:
type: boolean
default: false
default: true
orbs:
browser-tools: circleci/browser-tools@1.2.3
jobs:

@ -4,6 +4,7 @@ import init from '../helpers/init'
import sauce from './sauce'
module.exports = {
'@disabled': true,
before: function (browser: NightwatchBrowser, done: VoidFunction) {
init(browser, done, 'http://127.0.0.1:8080?activate=solidity,udapp&call=fileManager//open//contracts/3_Ballot.sol&deactivate=home', false)
},
@ -15,7 +16,7 @@ module.exports = {
.clickLaunchIcon('udapp')
},
'Editor should be focused on the 3_Ballot.sol': function (browser: NightwatchBrowser) {
'Editor should be focused on the 3_Ballot.sol #group1': function (browser: NightwatchBrowser) {
browser
.pause(5000)
.refresh()
@ -25,12 +26,12 @@ module.exports = {
})
},
'Home page should be deactivated': function (browser: NightwatchBrowser) {
'Home page should be deactivated #group1': function (browser: NightwatchBrowser) {
browser
.waitForElementNotPresent('[data-id="landingPageHomeContainer"]')
},
'Should create two workspace and switch to the first one': function (browser: NightwatchBrowser) {
'Should create two workspace and switch to the first one #group1': function (browser: NightwatchBrowser) {
browser
.clickLaunchIcon('filePanel')
.click('*[data-id="workspaceCreate"]') // create workspace_name
@ -59,7 +60,7 @@ module.exports = {
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]')
},
'Should rename a workspace': function (browser: NightwatchBrowser) {
'Should rename a workspace #group1 #flaky': function (browser: NightwatchBrowser) {
browser
.click('*[data-id="workspaceRename"]') // rename workspace_name
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtests"]')
@ -78,7 +79,7 @@ module.exports = {
.waitForElementVisible('*[data-id="treeViewLitreeViewItemtest.sol"]')
},
'Should delete a workspace': function (browser: NightwatchBrowser) {
'Should delete a workspace #group1': function (browser: NightwatchBrowser) {
browser
.click('*[data-id="workspacesSelect"] option[value="workspace_name_1"]')
.click('*[data-id="workspaceDelete"]') // delete workspace_name_1

Loading…
Cancel
Save