From 252426f99224e752f64f6e090f5a2966e189a066 Mon Sep 17 00:00:00 2001 From: Nirmal Kumar R Date: Thu, 14 Nov 2024 14:43:57 +0530 Subject: [PATCH] Fix unnecessary use of networkidle --- tests/e2e/markdown-editor.test.e2e.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/e2e/markdown-editor.test.e2e.ts b/tests/e2e/markdown-editor.test.e2e.ts index 766a4d18fb..bd62e2ba3e 100644 --- a/tests/e2e/markdown-editor.test.e2e.ts +++ b/tests/e2e/markdown-editor.test.e2e.ts @@ -20,14 +20,12 @@ test('Markdown image preview behaviour', async ({browser}, workerInfo) => { expect(response?.status()).toBe(200); await page.locator('[data-tooltip-content="Edit file"]').click(); - await page.waitForLoadState('networkidle'); const editor = page.locator('[aria-roledescription="editor"]').first(); await editor.fill(''); await editor.fill('![Logo of Forgejo](./assets/logo.svg "Logo of Forgejo")'); await page.locator('a[data-tab="preview"]').click(); - await page.waitForLoadState('networkidle'); const preview = page.locator('div[data-tab="preview"] p[dir="auto"] a'); await expect(preview).toHaveAttribute('href', 'http://localhost:3003/user2/repo1/media/branch/master/assets/logo.svg');