forked from baron/baron-sso
devfront Playwright 실패 케이스 수정
This commit is contained in:
@@ -49,12 +49,12 @@ test.describe("DevFront developer request and management", () => {
|
|||||||
await page.locator("#reason").fill("Need to test OIDC integration");
|
await page.locator("#reason").fill("Need to test OIDC integration");
|
||||||
|
|
||||||
// Submit
|
// Submit
|
||||||
const submitBtn = page.getByRole("button", {
|
await page
|
||||||
name: "신청하기",
|
.locator("form")
|
||||||
exact: true,
|
.filter({ has: page.locator("#reason") })
|
||||||
});
|
.evaluate((form) => {
|
||||||
await submitBtn.scrollIntoViewIfNeeded();
|
(form as HTMLFormElement).requestSubmit();
|
||||||
await submitBtn.click();
|
});
|
||||||
|
|
||||||
// Verify Status - Look for "Pending" or "대기" anywhere
|
// Verify Status - Look for "Pending" or "대기" anywhere
|
||||||
await expect(page.locator("body")).toContainText(/대기|Pending/);
|
await expect(page.locator("body")).toContainText(/대기|Pending/);
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ test.describe("DevFront security and isolation", () => {
|
|||||||
await page.goto("/clients");
|
await page.goto("/clients");
|
||||||
await expect(
|
await expect(
|
||||||
page.getByText(
|
page.getByText(
|
||||||
/연동 앱 목록 접근 권한 없음|Access denied: Connected Applications/i,
|
/연동 앱 접근 권한 없음|Access denied: Connected Applications/i,
|
||||||
),
|
),
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
await expect(
|
await expect(
|
||||||
@@ -139,6 +139,22 @@ test.describe("DevFront security and isolation", () => {
|
|||||||
clients: [] as ReturnType<typeof makeClient>[],
|
clients: [] as ReturnType<typeof makeClient>[],
|
||||||
consents: [] as Consent[],
|
consents: [] as Consent[],
|
||||||
auditLogsByCursor: undefined,
|
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);
|
await installDevApiMock(page, state);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user