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.

[skip ci] Fix flaky clipboard test (#6827)

The visual playwright tests for clipboard copy are flaky. The screenshot races against the modification of the tooltip, which makes the screenshots flap between "Copy to clipboard" and "Copied!". I fixed this in the second test and apparently forgot to copy it back to the first one.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6827
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Otto Richter <otto@codeberg.org>
Co-committed-by: Otto Richter <otto@codeberg.org>

authored by

Otto Richter
Otto Richter
and committed by
Gusted
7f01f3cb f90bf425

+1
+1
tests/e2e/clipboard-copy.test.e2e.ts
··· 19 19 await page.click('[data-clipboard-text]'); 20 20 const clipboardText = await page.evaluate(() => navigator.clipboard.readText()); 21 21 expect(clipboardText).toContain('README.md'); 22 + await expect(page.getByText('Copied')).toBeVisible(); 22 23 await save_visual(page); 23 24 }); 24 25