@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: Record<string, string>) => void;
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
@@ -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" ? "s" : "d"}/${paths.en}`));
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" ? "s" : "d"}/${paths.de}`));
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
@@ -77,5 +77,5 @@
77
77
  "test:e2e:server:static": "cross-env NUXT_PUBLIC_I18N_BASE_URL=https://app.localhost:3002 PORT=3002 VIO_SERVER=static pnpm run test:e2e"
78
78
  },
79
79
  "type": "module",
80
- "version": "21.0.0-beta.10"
80
+ "version": "21.0.0-beta.11"
81
81
  }