mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-12 23:31:02 +00:00
9e40092507
A page preview draws the spread the server applied with the journey's photos, texts and figures instead of applying the operations again without them. The Studio's welcome, privacy banner and header fit a journey chat: a viewer is told they can only look, the banner speaks of the book, and the trip notes button stays in the trip chat. Escape closes the header menu before it stops a reply, a single page renders at the full long edge, the status says a model reads pages only while its provider has not refused an image, and pointing at a page in a design card outlines it in the Studio.
14 lines
584 B
TypeScript
14 lines
584 B
TypeScript
import { test } from '@playwright/test';
|
|
|
|
import { checkPageSnapshot } from './support/pageSnapshotFlow';
|
|
|
|
// The Studio's page image for the assistant, drawn in Chromium. The same flow
|
|
// runs in WebKit from page-snapshot-webkit.spec.ts, the engine with the most
|
|
// to get wrong about drawing a page through an SVG foreignObject.
|
|
// page.route does not see a request the service worker answers, so it is blocked.
|
|
test.use({ serviceWorkers: 'block' });
|
|
|
|
test('Studio page snapshot: Chromium draws a seeded spread to a JPEG', async ({ page }) => {
|
|
await checkPageSnapshot(page);
|
|
});
|