feat: new workspace switch dropdown design (#3700)

Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
danielchim
2023-08-17 06:18:43 +08:00
committed by GitHub
parent f369ca39f7
commit 9ab9c0c70d
11 changed files with 368 additions and 192 deletions

View File

@@ -16,12 +16,14 @@ export async function createWorkspace(
await openWorkspaceListModal(page);
// open create workspace modal
await page.locator('.add-icon').click();
await page.getByTestId('new-workspace').click();
// input workspace name
await page.getByPlaceholder('Set a Workspace name').click();
await page.getByPlaceholder('Set a Workspace name').fill(params.name);
// click create button
return page.getByRole('button', { name: 'Create' }).click();
return page.getByRole('button', { name: 'Create' }).click({
delay: 500,
});
}