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);