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

@@ -176,7 +176,7 @@ test('should hide edgeless-only note headings', async ({ page }) => {
.getByTestId('outline-block-preview-h1')
.locator('span');
await h1InPanel.waitFor({ state: 'visible' });
expect(h1InPanel).toContainText(['Heading 1']);
await expect(h1InPanel).toContainText(['Heading 1']);
});
test('outline viewer should be useable in doc peek preview', async ({