Skip to content

Commit

Permalink
Merge branch 'master' into fix/better-theme-defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
connoratrug authored Jan 16, 2025
2 parents 12fe632 + 9f53d75 commit e68296b
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions apps/nuxt3-ssr/tests/theme.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import { expect, test } from "@nuxt/test-utils/playwright";

test.beforeEach(async ({ context, baseURL }) => {
await context.addCookies([
{
name: "mg_allow_analytics",
value: "false",
domain: new URL(baseURL as string).hostname,
path: "/",
},
]);
});

test("landing-page-molgenis", async ({ page, goto }) => {
await goto("/catalogue-demo/ssr-catalogue/", {
waitUntil: "hydration",
});
await expect(page).toHaveScreenshot({
fullPage: true,
maxDiffPixelRatio: 0.4,
});
});

test("landing-page-umcg", async ({ page, goto }) => {
await goto("/catalogue-demo/ssr-catalogue/?theme=umcg", {
waitUntil: "hydration",
});
await expect(page).toHaveScreenshot({
fullPage: true,
maxDiffPixelRatio: 0.4,
});
});

test("landing-page-aumc", async ({ page, goto }) => {
await goto("/catalogue-demo/ssr-catalogue/?theme=aumc", {
waitUntil: "hydration",
});
await expect(page).toHaveScreenshot({
fullPage: true,
maxDiffPixelRatio: 0.4,
});
});

0 comments on commit e68296b

Please sign in to comment.