Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

test: fix flaky create template doc e2e (#11863)

Brooooooklyn864dd0e74d13
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');