@dargmuesli/nuxt-vio-testing 23.1.2 → 23.1.3

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.
@@ -410,11 +410,15 @@ const testMetadata = async ({ page, path, title }) => {
410
410
  };
411
411
  const testOgImage = (paths) => vioTest.describe("visual regression", () => {
412
412
  vioTest("generates the open graph image", async ({ page }) => {
413
+ const base = new URL(SITE_URL);
413
414
  for (const path of [paths.en, paths.de]) {
414
415
  await page.goto(path);
415
416
  const ogImageUrl = await page.locator("meta[property=\"og:image\"]").getAttribute("content");
416
417
  if (!ogImageUrl) throw new Error("The og:image url is not given.");
417
- await page.goto(ogImageUrl);
418
+ const ogImage = new URL(ogImageUrl);
419
+ ogImage.protocol = base.protocol;
420
+ ogImage.host = base.host;
421
+ await page.goto(ogImage.toString());
418
422
  await expect(page).toHaveScreenshot();
419
423
  }
420
424
  });
package/package.json CHANGED
@@ -56,7 +56,7 @@
56
56
  "url": "git+https://github.com/dargmuesli/vio.git"
57
57
  },
58
58
  "type": "module",
59
- "version": "23.1.2",
59
+ "version": "23.1.3",
60
60
  "scripts": {
61
61
  "build": "tsdown",
62
62
  "postbuild": "node -e \"import('node:fs').then(fs=>{fs.mkdirSync('dist/scripts',{recursive:true});fs.copyFileSync('scripts/warm-dev-server.mjs','dist/scripts/warm-dev-server.mjs')})\"",