From 1b075e049f17a6070782eaedf2891c231f8aa551 Mon Sep 17 00:00:00 2001 From: kyy Date: Wed, 10 Jun 2026 16:28:39 +0900 Subject: [PATCH] =?UTF-8?q?devfront=20Playwright=20=EC=8B=A4=ED=8C=A8=20?= =?UTF-8?q?=EC=BC=80=EC=9D=B4=EC=8A=A4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tests/devfront-developer-request.spec.ts | 12 ++++++------ devfront/tests/devfront-security.spec.ts | 18 +++++++++++++++++- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/devfront/tests/devfront-developer-request.spec.ts b/devfront/tests/devfront-developer-request.spec.ts index 6c935a2a..ec18f35b 100644 --- a/devfront/tests/devfront-developer-request.spec.ts +++ b/devfront/tests/devfront-developer-request.spec.ts @@ -49,12 +49,12 @@ test.describe("DevFront developer request and management", () => { await page.locator("#reason").fill("Need to test OIDC integration"); // Submit - const submitBtn = page.getByRole("button", { - name: "신청하기", - exact: true, - }); - await submitBtn.scrollIntoViewIfNeeded(); - await submitBtn.click(); + await page + .locator("form") + .filter({ has: page.locator("#reason") }) + .evaluate((form) => { + (form as HTMLFormElement).requestSubmit(); + }); // Verify Status - Look for "Pending" or "대기" anywhere await expect(page.locator("body")).toContainText(/대기|Pending/); diff --git a/devfront/tests/devfront-security.spec.ts b/devfront/tests/devfront-security.spec.ts index 7d393d36..be2094bb 100644 --- a/devfront/tests/devfront-security.spec.ts +++ b/devfront/tests/devfront-security.spec.ts @@ -120,7 +120,7 @@ test.describe("DevFront security and isolation", () => { await page.goto("/clients"); await expect( page.getByText( - /연동 앱 목록 접근 권한 없음|Access denied: Connected Applications/i, + /연동 앱 접근 권한 없음|Access denied: Connected Applications/i, ), ).toBeVisible(); await expect( @@ -139,6 +139,22 @@ test.describe("DevFront security and isolation", () => { clients: [] as ReturnType[], consents: [] as Consent[], auditLogsByCursor: undefined, + developerRequests: [ + { + id: "req-audit-approved", + userId: "playwright-user", + userName: "Playwright User", + name: "Playwright User", + userEmail: "playwright@example.com", + organization: "Tenant A", + reason: "Need audit access", + status: "approved", + accessPages: ["audit"], + createdAt: "2026-05-29T00:00:00.000Z", + updatedAt: "2026-05-29T00:10:00.000Z", + approvedAt: "2026-05-29T00:10:00.000Z", + }, + ], }; await installDevApiMock(page, state);