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

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

No files matched your search

@@ -53,6 +53,6 @@ test('should not show hidden note in embed view page mode', async ({
// check the content
const embedLink = page.locator('affine-embed-synced-doc-block');
expect(embedLink.getByText(/visible content/)).toBeVisible();
expect(embedLink.getByText(/hidden content/)).toBeHidden();
await expect(embedLink.getByText(/visible content/)).toBeVisible();
await expect(embedLink.getByText(/hidden content/)).toBeHidden();
});