loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <gusted@noreply.codeberg.org>
Reviewed-by: Beowulf <beowulf@beocode.eu>
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: Danko Aleksejevs <danko@very.lv>
Co-committed-by: Danko Aleksejevs <danko@very.lv>

authored by

Danko Aleksejevs
Danko Aleksejevs
and committed by
Gusted
1f24f35f 742e0c6a

+1 -1
+1 -1
tests/e2e/issue-comment.test.e2e.ts
··· 177 177 const response = await page.goto('/user2/commitsonpr/pulls/1/files'); 178 178 expect(response?.status()).toBe(200); 179 179 180 - const editorTextarea = page.locator('textarea.markdown-text-editor'); 180 + const editorTextarea = page.locator('form.comment-form textarea.markdown-text-editor'); 181 181 182 182 // Full quote with no reply handler being open. 183 183 await page.click('.comment-code-cloud .context-menu');