|
|
|
@ -6,12 +6,10 @@ class switchWorkspace extends EventEmitter { |
|
|
|
|
const timestamp = new Date().getTime() |
|
|
|
|
this.api.waitForElementVisible('[data-id="workspacesSelect"]') |
|
|
|
|
.click('[data-id="workspacesSelect"]') |
|
|
|
|
//.saveScreenshot(`./reports/screenshots/workspace_group1.test/1_switchWorkspace${timestamp}.png`)
|
|
|
|
|
.waitForElementVisible(`[data-id="dropdown-item-${workspaceName}"]`) |
|
|
|
|
.pause(2000) |
|
|
|
|
.click(`[data-id="dropdown-item-${workspaceName}"]`) |
|
|
|
|
.pause(3000) |
|
|
|
|
//.saveScreenshot(`./reports/screenshots/workspace_group1.test/2_afterSwitchWorkspace${timestamp}.png`)
|
|
|
|
|
.perform((done) => { |
|
|
|
|
done() |
|
|
|
|
this.emit('complete') |
|
|
|
|