From 1f24f35fe9cd91aba5a9b2678e4306aa016b9e77 Mon Sep 17 00:00:00 2001 From: Danko Aleksejevs Date: Thu, 6 Feb 2025 11:56:09 +0000 Subject: [PATCH] Fix comment form e2e test (#6815) This fixes the test in question erroneously failing due to a different `markdown-text-editor` present elsewhere (in this case, hidden in the "finish review" dropdown). Having more than one comment form uncommanded would likely be a bug, so adding that selector instead of an ID. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6815 Reviewed-by: Gusted Reviewed-by: Beowulf Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: Danko Aleksejevs Co-committed-by: Danko Aleksejevs --- tests/e2e/issue-comment.test.e2e.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/issue-comment.test.e2e.ts b/tests/e2e/issue-comment.test.e2e.ts index 1c19f98c48..d2dbafafd0 100644 --- a/tests/e2e/issue-comment.test.e2e.ts +++ b/tests/e2e/issue-comment.test.e2e.ts @@ -177,7 +177,7 @@ test('Pull quote reply', async ({page}, workerInfo) => { const response = await page.goto('/user2/commitsonpr/pulls/1/files'); expect(response?.status()).toBe(200); - const editorTextarea = page.locator('textarea.markdown-text-editor'); + const editorTextarea = page.locator('form.comment-form textarea.markdown-text-editor'); // Full quote with no reply handler being open. await page.click('.comment-code-cloud .context-menu');