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

This commit is contained in:
Brooooooklyn
2025-04-21 13:04:49 +00:00
parent a31d97dbb1
commit 864dd0e74d
+1 -1
View File
@@ -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');