diff --git a/package-lock.json b/package-lock.json
index 3da2036..2696ea5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -8,6 +8,7 @@
"name": "armakuni-way",
"version": "1.0.0",
"dependencies": {
+ "@axe-core/playwright": "^4.10.0",
"@fontsource/maven-pro": "^5.0.16",
"@heroicons/react": "^2.1.5",
"@mdx-js/react": "^3.0.1",
@@ -190,6 +191,18 @@
"node": ">=8"
}
},
+ "node_modules/@axe-core/playwright": {
+ "version": "4.10.0",
+ "resolved": "https://registry.npmjs.org/@axe-core/playwright/-/playwright-4.10.0.tgz",
+ "integrity": "sha512-kEr3JPEVUSnKIYp/egV2jvFj+chIjCjPp3K3zlpJMza/CB3TFw8UZNbI9agEC2uMz4YbgAOyzlbUy0QS+OofFA==",
+ "license": "MPL-2.0",
+ "dependencies": {
+ "axe-core": "~4.10.0"
+ },
+ "peerDependencies": {
+ "playwright-core": ">= 1.0.0"
+ }
+ },
"node_modules/@babel/code-frame": {
"version": "7.25.7",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.7.tgz",
@@ -19684,7 +19697,6 @@
"version": "1.47.2",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.47.2.tgz",
"integrity": "sha512-3JvMfF+9LJfe16l7AbSmU555PaTl2tPyQsVInqm3id16pdDfvZ8TTZ/pyzmkbDrZTQefyzU7AIHlZqQnxpqHVQ==",
- "dev": true,
"license": "Apache-2.0",
"bin": {
"playwright-core": "cli.js"
diff --git a/package.json b/package.json
index 05d45ea..c263cde 100644
--- a/package.json
+++ b/package.json
@@ -8,8 +8,8 @@
"gatsby"
],
"scripts": {
- "lint": "eslint --cache --cache-location=./node_modules/.eslintcache src",
- "lint:fix": "eslint --cache --cache-location=./node_modules/.eslintcache --fix src",
+ "lint": "eslint --cache --cache-location=./node_modules/.eslintcache src tests",
+ "lint:fix": "eslint --cache --cache-location=./node_modules/.eslintcache --fix src tests",
"test:unit": "vitest",
"test:e2e": "playwright test",
"develop": "gatsby develop",
@@ -23,6 +23,7 @@
"node": ">=v22.2.0"
},
"dependencies": {
+ "@axe-core/playwright": "^4.10.0",
"@fontsource/maven-pro": "^5.0.16",
"@heroicons/react": "^2.1.5",
"@mdx-js/react": "^3.0.1",
diff --git a/playwright.config.ts b/playwright.config.ts
index db10fb3..b666320 100644
--- a/playwright.config.ts
+++ b/playwright.config.ts
@@ -1,6 +1,6 @@
import { defineConfig, devices } from '@playwright/test';
-const baseUrl = process.env.PW_BASE_URL ? process.env.PW_BASE_URL : 'http://localhost:8000';
+const baseUrl = process.env.PW_BASE_URL ? process.env.PW_BASE_URL : 'http://localhost:8002';
const startWebserver = !process.env.PW_BASE_URL;
export default defineConfig({
@@ -47,7 +47,7 @@ export default defineConfig({
],
// Run your local dev server before starting the tests.
webServer: startWebserver ? {
- command: 'npm run start',
+ command: 'npm run start -- --port 8002',
url: baseUrl,
reuseExistingServer: !process.env.CI,
timeout: 5 * 60 * 1000,
diff --git a/src/components/post-layout.tsx b/src/components/post-layout.tsx
index aeadbe2..491eb7f 100644
--- a/src/components/post-layout.tsx
+++ b/src/components/post-layout.tsx
@@ -25,6 +25,7 @@ export default function PostLayout({ children }: PostLayoutProps) {
return (
<>