1
0
forked from baron/baron-sso

CI test 업데이트

This commit is contained in:
Lectom C Han
2026-02-20 09:43:19 +09:00
parent 5d8697e361
commit 8ed3bd8c77
11 changed files with 714 additions and 401 deletions

View File

@@ -27,6 +27,10 @@ test("user create and delete flow", async ({ page }) => {
const users: UserSummary[] = [];
let idSeq = 1;
await page.addInitScript(() => {
window.localStorage.setItem("admin_session", "playwright-admin-session");
});
await page.route("**/api/v1/admin/users**", async (route) => {
const request = route.request();
const url = new URL(request.url());
@@ -109,8 +113,14 @@ test("user create and delete flow", async ({ page }) => {
});
await page.goto("/users");
await expect(page).toHaveURL(/\/users$/);
await expect(
page.getByRole("heading", { name: "사용자 관리" }),
).toBeVisible();
await page.getByRole("link", { name: "사용자 추가" }).click();
const addUserLink = page.getByRole("link", { name: "사용자 추가" });
await expect(addUserLink).toBeVisible();
await addUserLink.click();
await expect(page).toHaveURL(/\/users\/new$/);
const uniqueEmail = `playwright-${Date.now()}@example.com`;