From 4ec04d9786bf5a633b9df39163b9d694db872d96 Mon Sep 17 00:00:00 2001 From: carsakiller Date: Mon, 15 Jul 2024 18:06:56 +0000 Subject: [PATCH] fix: tests --- playwright.config.ts | 2 +- src/layouts/WikiArticle.astro | 8 ++++---- src/test/header.spec.ts | 13 ++++++++----- src/test/index.spec.ts | 2 +- src/test/wiki_article.spec.ts | 34 ++++++++++++++++++---------------- 5 files changed, 32 insertions(+), 27 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index 97f210c..0e489fe 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -70,7 +70,7 @@ export default defineConfig({ /* Run your local dev server before starting the tests */ webServer: { - command: "npm run preview", + command: "pnpm preview", url: "http://localhost:4321/", timeout: 60 * 1000, reuseExistingServer: !process.env.CI, diff --git a/src/layouts/WikiArticle.astro b/src/layouts/WikiArticle.astro index 4470b3a..a1e4bff 100644 --- a/src/layouts/WikiArticle.astro +++ b/src/layouts/WikiArticle.astro @@ -32,8 +32,8 @@ export interface Props {