From 5cd8b38bdd5961c28dc2f934a0198270211a459e Mon Sep 17 00:00:00 2001 From: tzhangchi Date: Mon, 2 Jan 2023 01:17:28 +0800 Subject: [PATCH] test: improve e2e test of export html --- tests/local-first-export-page.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')