test: fix flaky (#1953)

This commit is contained in:
Himself65 authored and GitHub committed 2023-04-14 15:03:16 -05:00
1 parent 8d2fefb5f8
commit b771a2504b
4 files changed
+46 -1

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ test.describe('Open AFFiNE', () => {
const workspaceCards = await page.$$('data-testid=workspace-card');
expect(workspaceCards.length).toBe(2);
await workspaceCards[1].click();
await page.goto('http://localhost:8080');
await openHomePage(page);
const workspaceNameDom = await page.getByTestId('workspace-name');
const currentWorkspaceName = await workspaceNameDom.evaluate(