1
0
forked from baron/baron-sso

devfront Playwright 실패 케이스 수정

This commit is contained in:
2026-06-10 16:28:39 +09:00
parent 01bde0925d
commit 1b075e049f
2 changed files with 23 additions and 7 deletions

View File

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

View File

@@ -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<typeof makeClient>[],
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);