Skip to content

Commit

Permalink
update create workspace
Browse files Browse the repository at this point in the history
Signed-off-by: Hailong Cui <[email protected]>
  • Loading branch information
Hailong-am committed Apr 29, 2024
1 parent 6163ed1 commit 3477dd0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (Cypress.env('WORKSPACE_ENABLED')) {
cy.deleteAllWorkspaces();

for (const workspaceName of workspaceNames) {
cy.createWorkspace(workspaceName).then((workspaceId) => {
cy.createWorkspace({ workspaceName }).then((workspaceId) => {
workspaceNameIdMapping[workspaceName] = workspaceId;
});
}
Expand Down Expand Up @@ -98,10 +98,11 @@ if (Cypress.env('WORKSPACE_ENABLED')) {

// Create 3 more workspaces so that there are more than 5 workspaces in the system
for (const workspaceName of newWorkspaceNames) {
cy.createWorkspace(workspaceName);
cy.createWorkspace({ workspaceName });
}

cy.wait(1000);
cy.reload();

cy.getElementByTestId('toggleNavButton').click();
cy.get('#workspaceDropdownMenu').click();
Expand Down

0 comments on commit 3477dd0

Please sign in to comment.