forked from baron/baron-sso
orgfront refresh token 관리 추가
This commit is contained in:
@@ -189,9 +189,9 @@ test.describe("Tenant list performance", () => {
|
||||
|
||||
const loadStarted = performance.now();
|
||||
await page.goto("/tenants");
|
||||
await expect(page.getByTestId("tenant-internal-id-tenant-3500")).toBeVisible(
|
||||
{ timeout: 15000 },
|
||||
);
|
||||
await expect(
|
||||
page.getByTestId("tenant-internal-id-tenant-3500"),
|
||||
).toBeVisible({ timeout: 15000 });
|
||||
const loadMs = performance.now() - loadStarted;
|
||||
const loadSnapshot = testInfo.outputPath("tenant-list-load.png");
|
||||
await page.screenshot({ path: loadSnapshot, fullPage: true });
|
||||
@@ -201,9 +201,9 @@ test.describe("Tenant list performance", () => {
|
||||
const searchInput = page.getByPlaceholder("이름 또는 슬러그, ID 검색");
|
||||
const searchStarted = performance.now();
|
||||
await searchInput.fill("full-dataset-needle-0100");
|
||||
await expect(page.getByTestId("tenant-internal-id-tenant-0100")).toBeVisible(
|
||||
{ timeout: 15000 },
|
||||
);
|
||||
await expect(
|
||||
page.getByTestId("tenant-internal-id-tenant-0100"),
|
||||
).toBeVisible({ timeout: 15000 });
|
||||
const searchMs = performance.now() - searchStarted;
|
||||
const searchSnapshot = testInfo.outputPath("tenant-list-search.png");
|
||||
await page.screenshot({ path: searchSnapshot, fullPage: true });
|
||||
@@ -211,9 +211,9 @@ test.describe("Tenant list performance", () => {
|
||||
await expect(page.locator("tbody")).toContainText(
|
||||
"full-dataset-needle-0100",
|
||||
);
|
||||
await expect(page.getByTestId("tenant-internal-id-tenant-3500")).toHaveCount(
|
||||
0,
|
||||
);
|
||||
await expect(
|
||||
page.getByTestId("tenant-internal-id-tenant-3500"),
|
||||
).toHaveCount(0);
|
||||
|
||||
console.log(
|
||||
JSON.stringify({
|
||||
@@ -225,8 +225,9 @@ test.describe("Tenant list performance", () => {
|
||||
}),
|
||||
);
|
||||
|
||||
const searchBudgetMs = testInfo.project.name === "firefox" ? 1000 : 500;
|
||||
expect(loadMs).toBeLessThanOrEqual(1500);
|
||||
expect(searchMs).toBeLessThanOrEqual(500);
|
||||
expect(searchMs).toBeLessThanOrEqual(searchBudgetMs);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user