From 864dd0e74d135e0d24aa01b1cfbfbef7aff3ef9f Mon Sep 17 00:00:00 2001 From: Brooooooklyn Date: Mon, 21 Apr 2025 13:04:49 +0000 Subject: [PATCH] test: fix flaky create template doc e2e (#11863) --- tests/affine-local/e2e/template.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/affine-local/e2e/template.spec.ts b/tests/affine-local/e2e/template.spec.ts index a149ff69fa..e0fd65e2d8 100644 --- a/tests/affine-local/e2e/template.spec.ts +++ b/tests/affine-local/e2e/template.spec.ts @@ -237,9 +237,9 @@ test('open template doc from sidebar template entrance', async ({ page }) => { test('create template doc from sidebar template entrance', async ({ page }) => { await openHomePage(page); + await waitForEditorLoad(page); await page.getByTestId('sidebar-template-doc-entrance').click(); await page.getByTestId('template-doc-item-create').click(); - await waitForEditorLoad(page); await page.locator('affine-note').first().click(); await page.keyboard.press('Backspace');