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: improve e2e test of export html

tzhangchi5cd8b38bdd59
diff --git a/tests/local-first-export-page.spec.ts b/tests/local-first-export-page.spec.ts
index 90be01ace5..5a9e245086 100644
--- a/tests/local-first-export-page.spec.ts
+++ b/tests/local-first-export-page.spec.ts
@@ -5,7 +5,7 @@ loadPage();
test.describe('Local first export page', () => {
test('New a page ,then open it and export html', async ({ page }) => {
- await page.getByText('New Page').click();
+ await newPage(page);
await page.getByPlaceholder('Title').click();
await page
.getByPlaceholder('Title')