Make screenshot tests repeatable by providing own fonts

This commit is contained in:
Przemek Więch
2026-05-12 23:35:10 +02:00
parent 328008f8e9
commit 41d7ed8208
10 changed files with 52 additions and 40 deletions

View File

@@ -1,11 +1,10 @@
import {expect, test} from '@playwright/test';
import {setupGedcomRoute, waitForFonts} from './helpers';
import {setupGedcomRoute, setupHermeticEnvironment} from './helpers';
test.describe('Configurations Integration @visual', () => {
test.beforeEach(async ({page, context}) => {
await setupHermeticEnvironment(context);
await setupGedcomRoute(context);
await page.goto('/');
await waitForFonts(page);
await page.goto('/#/view?url=https://example.org/family.ged');