summaryrefslogtreecommitdiffstats
path: root/tests/e2e/markup.test.e2e.ts
diff options
context:
space:
mode:
author0ko <0ko@noreply.codeberg.org>2025-01-16 19:06:47 +0100
committer0ko <0ko@noreply.codeberg.org>2025-01-16 19:06:47 +0100
commit4fd56a11c86516012cd8ef071c4ba2532d07a822 (patch)
tree9b2643a3d090843a5d146e79b06de10f1477a2c3 /tests/e2e/markup.test.e2e.ts
parentUpdate renovate Docker tag to v39.111.0 (forgejo) (#6570) (diff)
parenttests(e2e): Mask user heatmap in screenshots (diff)
downloadforgejo-4fd56a11c86516012cd8ef071c4ba2532d07a822.tar.xz
forgejo-4fd56a11c86516012cd8ef071c4ba2532d07a822.zip
tests(e2e): Various fixes to visual testing (#6569)
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6569 Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Diffstat (limited to 'tests/e2e/markup.test.e2e.ts')
-rw-r--r--tests/e2e/markup.test.e2e.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/e2e/markup.test.e2e.ts b/tests/e2e/markup.test.e2e.ts
index 2726942d57..398a0a6300 100644
--- a/tests/e2e/markup.test.e2e.ts
+++ b/tests/e2e/markup.test.e2e.ts
@@ -3,7 +3,7 @@
// @watch end
import {expect} from '@playwright/test';
-import {test} from './utils_e2e.ts';
+import {save_visual, test} from './utils_e2e.ts';
test('markup with #xyz-mode-only', async ({page}) => {
const response = await page.goto('/user2/repo1/issues/1');
@@ -13,4 +13,5 @@ test('markup with #xyz-mode-only', async ({page}) => {
await expect(comment).toBeVisible();
await expect(comment.locator('[src$="#gh-light-mode-only"]')).toBeVisible();
await expect(comment.locator('[src$="#gh-dark-mode-only"]')).toBeHidden();
+ await save_visual(page);
});