|
|
@ -3,7 +3,6 @@ import EventEmitter from 'events' |
|
|
|
|
|
|
|
|
|
|
|
class switchWorkspace extends EventEmitter { |
|
|
|
class switchWorkspace extends EventEmitter { |
|
|
|
command (this: NightwatchBrowser, workspaceName: string): NightwatchBrowser { |
|
|
|
command (this: NightwatchBrowser, workspaceName: string): NightwatchBrowser { |
|
|
|
const timestamp = new Date().getTime() |
|
|
|
|
|
|
|
this.api.waitForElementVisible('[data-id="workspacesSelect"]') |
|
|
|
this.api.waitForElementVisible('[data-id="workspacesSelect"]') |
|
|
|
.click('[data-id="workspacesSelect"]') |
|
|
|
.click('[data-id="workspacesSelect"]') |
|
|
|
.waitForElementVisible(`[data-id="dropdown-item-${workspaceName}"]`) |
|
|
|
.waitForElementVisible(`[data-id="dropdown-item-${workspaceName}"]`) |
|
|
|