pull/5370/head
filip mertens 2 years ago
parent 868d0e5507
commit f8744d4707
  1. 3
      apps/remix-ide-e2e/src/commands/switchWorkspace.ts

@ -5,11 +5,10 @@ class switchWorkspace extends EventEmitter {
command (this: NightwatchBrowser, workspaceName: string): NightwatchBrowser { command (this: NightwatchBrowser, workspaceName: string): NightwatchBrowser {
this.api this.api
.waitForElementVisible('[data-id="workspacesSelect"]') .waitForElementVisible('[data-id="workspacesSelect"]')
.waitForElementPresent(`[data-id="dropdown-item-${workspaceName}"]`)
.click('[data-id="workspacesSelect"]') .click('[data-id="workspacesSelect"]')
.waitForElementVisible(`[data-id="dropdown-item-${workspaceName}"]`) .waitForElementVisible(`[data-id="dropdown-item-${workspaceName}"]`)
.click(`[data-id="dropdown-item-${workspaceName}"]`) .click(`[data-id="dropdown-item-${workspaceName}"]`)
.pause(4000) .pause(7000)
.perform((done) => { .perform((done) => {
done() done()
this.emit('complete') this.emit('complete')

Loading…
Cancel
Save