From 59d53bc1b2fe6d95cd68ca29917a30785e57c45b Mon Sep 17 00:00:00 2001 From: chan Date: Fri, 3 Apr 2026 15:03:08 +0900 Subject: [PATCH] chore(adminfront): fix Biome formatting issues --- adminfront/playwright.config.ts | 4 +++- adminfront/tests/users_schema.spec.ts | 24 ++++++++++++++---------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/adminfront/playwright.config.ts b/adminfront/playwright.config.ts index e010bcdf..d1dc80d0 100644 --- a/adminfront/playwright.config.ts +++ b/adminfront/playwright.config.ts @@ -61,7 +61,9 @@ export default defineConfig({ /* Run your local dev server before starting the tests */ webServer: { - command: process.env.CI ? "npm run build && npm run preview -- --port 5173" : "npm run dev", + command: process.env.CI + ? "npm run build && npm run preview -- --port 5173" + : "npm run dev", url: "http://localhost:5173", reuseExistingServer: !process.env.CI, timeout: 120 * 1000, diff --git a/adminfront/tests/users_schema.spec.ts b/adminfront/tests/users_schema.spec.ts index 3c49dd2f..2f954271 100644 --- a/adminfront/tests/users_schema.spec.ts +++ b/adminfront/tests/users_schema.spec.ts @@ -76,7 +76,7 @@ test.describe("User Schema Dynamic Form", () => { key: "emp_id", label: "Employee ID", required: true, - validation: "^E[0-9]{3}$" + validation: "^E[0-9]{3}$", }, { key: "loginId", @@ -108,7 +108,9 @@ test.describe("User Schema Dynamic Form", () => { joinedTenants: [ { id: "t-1", name: "Test Tenant", slug: "test-tenant" }, ], - metadata: { "t-1": { emp_id: "E123", salary: 1000, loginId: "johndoe" } }, + metadata: { + "t-1": { emp_id: "E123", salary: 1000, loginId: "johndoe" }, + }, }, }); } @@ -148,13 +150,13 @@ test.describe("User Schema Dynamic Form", () => { key: "emp_id", label: "Employee ID", required: true, - validation: "^E[0-9]{3}$" - }, - { - key: "loginId", - label: "Login ID", - required: true, - isLoginId: true, + validation: "^E[0-9]{3}$", + }, + { + key: "loginId", + label: "Login ID", + required: true, + isLoginId: true, }, { key: "salary", @@ -223,7 +225,9 @@ test.describe("User Schema Dynamic Form", () => { await empIdInput.press("Enter"); // 에러 메시지 확인 - const errorMsg = page.getByText(/형식이 올바르지 않습니다|Invalid format/i).first(); + const errorMsg = page + .getByText(/형식이 올바르지 않습니다|Invalid format/i) + .first(); await expect(errorMsg).toBeVisible(); }); });