pull/5370/head
bunsenstraat 2 years ago committed by Aniket
parent dbab51174e
commit 1aed77f79e
  1. 4
      apps/remix-ide-e2e/src/commands/switchWorkspace.ts

@ -6,12 +6,12 @@ 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`)
//.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`)
//.saveScreenshot(`./reports/screenshots/workspace_group1.test/2_afterSwitchWorkspace${timestamp}.png`)
.perform((done) => {
done()
this.emit('complete')

Loading…
Cancel
Save