mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-05-26 23:26:15 +00:00
Try to preload fonts in visual tests
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import {expect, test} from '@playwright/test';
|
||||
import {setupGedcomRoute} from './helpers';
|
||||
import {setupGedcomRoute, waitForFonts} from './helpers';
|
||||
|
||||
test.describe('Core SVG Canvas Layouts @visual', () => {
|
||||
test.beforeEach(async ({context}) => {
|
||||
test.beforeEach(async ({page, context}) => {
|
||||
await setupGedcomRoute(context);
|
||||
await page.goto('/');
|
||||
await waitForFonts(page);
|
||||
});
|
||||
|
||||
const layouts = [
|
||||
|
||||
Reference in New Issue
Block a user