From 76a5f7ba62e7996efad8e1be4b7f607e96b85915 Mon Sep 17 00:00:00 2001 From: Nirmal Kumar R Date: Sun, 10 Nov 2024 07:46:53 +0530 Subject: [PATCH] Fix frontend-linter issues --- tests/e2e/actions.test.e2e.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/actions.test.e2e.ts b/tests/e2e/actions.test.e2e.ts index 40cbde6b10..2154a71b05 100644 --- a/tests/e2e/actions.test.e2e.ts +++ b/tests/e2e/actions.test.e2e.ts @@ -19,7 +19,7 @@ test.beforeAll(async ({browser}, workerInfo) => { test('Markdown image preview behaviour', async ({browser}, workerInfo) => { const page = await login({browser}, workerInfo); - const editPath = '/user2/repo1/src/branch/master/README.md' + const editPath = '/user2/repo1/src/branch/master/README.md'; const response = await page.goto(editPath); expect(response?.status()).toBe(200); @@ -27,14 +27,14 @@ test('Markdown image preview behaviour', async ({browser}, workerInfo) => { await page.locator('[data-tooltip-content="Edit file"]').click(); await page.waitForLoadState('networkidle'); - const editor = await page.locator('[aria-roledescription="editor"]').first(); + 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 = await page.locator('div[data-tab="preview"] p[dir="auto"] a') + 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'); });