test: make workspace list tests stable

This commit is contained in:
tzhangchi committed 2023-02-08 17:48:03 +08:00
1 parent 4e1f812160
commit 6fa0820734
2 files changed
+7 -5

No files matched your search

+1 -3
View File
@@ -18,7 +18,5 @@ export async function createWorkspace(
await page.getByPlaceholder('Set a Workspace name').fill(params.name);
// click create button
await page.getByRole('button', { name: 'Create' }).click();
return page.waitForTimeout(300);
return page.getByRole('button', { name: 'Create' }).click();
}