forked from baron/baron-sso
E2E 역할 전환 테스트 레이스 컨디션 해결 및 안정성 보강
This commit is contained in:
@@ -93,7 +93,10 @@ test.describe("DevFront role report", () => {
|
||||
await page
|
||||
.getByPlaceholder("My Awesome Application")
|
||||
.fill("Tenant A CRM Updated");
|
||||
|
||||
const updatePromise = page.waitForResponse(r => r.url().includes('/api/v1/dev/clients') && r.request().method() === 'PUT');
|
||||
await page.getByRole("button", { name: /^저장$|^Save$/i }).click();
|
||||
await updatePromise;
|
||||
|
||||
await page.goto("/audit-logs");
|
||||
await expect(page.getByText("UPDATE_CLIENT")).toBeVisible({
|
||||
@@ -130,7 +133,10 @@ test.describe("DevFront role report", () => {
|
||||
await page
|
||||
.getByPlaceholder(/https:\/\/app\.example\.com\/callback/i)
|
||||
.fill("https://super-admin.example.com/callback");
|
||||
|
||||
const createPromise = page.waitForResponse(r => r.url().includes('/api/v1/dev/clients') && r.request().method() === 'POST');
|
||||
await page.getByRole("button", { name: /앱 생성|Create/i }).click();
|
||||
await createPromise;
|
||||
|
||||
await page.goto("/audit-logs");
|
||||
await expect(page.getByText("CREATE_CLIENT")).toBeVisible({
|
||||
|
||||
Reference in New Issue
Block a user