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