From 797e6cc90a4b033c023c7e50d2f6ddf4f7bd6366 Mon Sep 17 00:00:00 2001 From: chan Date: Tue, 21 Apr 2026 18:05:32 +0900 Subject: [PATCH] fix(devfront): add explicit button type and improve test stability --- devfront/playwright.config.ts | 4 ++-- devfront/src/features/auth/AuthGuard.tsx | 1 + devfront/src/features/clients/ClientGeneralPage.tsx | 13 ++++++++----- .../src/features/clients/ClientRelationsPage.tsx | 2 +- devfront/src/lib/auth.ts | 3 +-- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/devfront/playwright.config.ts b/devfront/playwright.config.ts index 1910fa4c..c4ad1449 100644 --- a/devfront/playwright.config.ts +++ b/devfront/playwright.config.ts @@ -63,8 +63,8 @@ export default defineConfig({ ? undefined : { command: process.env.CI - ? "npm run build && npm run preview -- --port 5174" - : "npm run dev -- --port 5174", + ? "VITE_OIDC_AUTHORITY=http://localhost:5000/oidc npm run build && npm run preview -- --port 5174" + : "VITE_OIDC_AUTHORITY=http://localhost:5000/oidc npm run dev -- --port 5174", url: baseURL, reuseExistingServer: !process.env.CI, }, diff --git a/devfront/src/features/auth/AuthGuard.tsx b/devfront/src/features/auth/AuthGuard.tsx index e204b150..a0791fba 100644 --- a/devfront/src/features/auth/AuthGuard.tsx +++ b/devfront/src/features/auth/AuthGuard.tsx @@ -16,6 +16,7 @@ export default function AuthGuard() {

{auth.error.message}