Try to preload fonts in visual tests

This commit is contained in:
Przemek Więch
2026-05-12 17:42:58 +02:00
parent 1119dd81dd
commit 9af5aa966a
5 changed files with 22 additions and 7 deletions

View File

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