feat: new workspace switch dropdown design (#3700)

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

No files matched your search

+4 -2
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,
});
}