@dargmuesli/nuxt-vio-testing 21.0.0-beta.10 → 21.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,7 +11,10 @@ declare const testMetadata: ({
|
|
|
11
11
|
path: string;
|
|
12
12
|
title: string;
|
|
13
13
|
}) => Promise<void>;
|
|
14
|
-
declare const testOgImage: (paths:
|
|
14
|
+
declare const testOgImage: (paths: {
|
|
15
|
+
static?: Record<string, string>;
|
|
16
|
+
dynamic?: Record<string, string>;
|
|
17
|
+
}) => void;
|
|
15
18
|
declare const testPageLoad: (url: string, status?: number) => void;
|
|
16
19
|
declare const testVisualRegression: (url: string, plain?: boolean) => void;
|
|
17
20
|
//#endregion
|
package/dist/e2e/utils/tests.mjs
CHANGED
|
@@ -433,9 +433,9 @@ const testMetadata = async ({ page, path, title }) => {
|
|
|
433
433
|
};
|
|
434
434
|
const testOgImage = (paths) => vioTest.describe("visual regression", () => {
|
|
435
435
|
vioTest("generates the open graph image", async ({ page }) => {
|
|
436
|
-
await page.goto(joinURL(`/_og/${process.env.VIO_SERVER === "static" ?
|
|
436
|
+
await page.goto(joinURL(`/_og/${process.env.VIO_SERVER === "static" ? `s/${paths.static.en}` : `d/${paths.dynamic.en}`}`));
|
|
437
437
|
await expect(page).toHaveScreenshot();
|
|
438
|
-
await page.goto(joinURL(`/_og/${process.env.VIO_SERVER === "static" ?
|
|
438
|
+
await page.goto(joinURL(`/_og/${process.env.VIO_SERVER === "static" ? `s/${paths.static.de}` : `d/${paths.dynamic.de}`}`));
|
|
439
439
|
await expect(page).toHaveScreenshot();
|
|
440
440
|
});
|
|
441
441
|
});
|
package/package.json
CHANGED