test(core): add missing await for expect (#11900)

This commit is contained in:
L-Sun
2025-04-23 04:55:18 +00:00
parent b1aecfc1c4
commit 9baef237f2
20 changed files with 93 additions and 105 deletions

View File

@@ -17,12 +17,7 @@ test('just one item in the workspace list at first', async ({
await waitForEditorLoad(page);
const workspaceName = page.getByTestId('workspace-name');
await workspaceName.click();
expect(
page
.locator('div')
.filter({ hasText: 'AFFiNE TestLocal WorkspaceAvailable Offline' })
.nth(3)
).not.toBeNull();
await expect(page.getByTestId('workspace-card')).toHaveCount(1);
const currentWorkspace = await workspace.current();
expect(currentWorkspace.meta.flavour).toContain('local');