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,13 +1,11 @@
import {expect, test} from '@playwright/test';
import dedent from 'dedent';
import * as fs from 'fs';
import {mockGedcomResponse, setupHermeticEnvironment, waitForFonts} from './helpers';
import {mockGedcomResponse, setupHermeticEnvironment} from './helpers';
test.describe('Details panel visual validation @visual', () => {
test.beforeEach(async ({page, context}) => {
test.beforeEach(async ({context}) => {
await setupHermeticEnvironment(context);
await page.goto('/');
await waitForFonts(page);
});
test('Complex Names Test', async ({page, context}) => {