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

@@ -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();
});