forked from baron/baron-sso
fix(adminfront): resolve biome lint errors and refine test stability
This commit is contained in:
@@ -120,8 +120,10 @@ test.describe("Audit Logs Management", () => {
|
||||
const responsePromise = page.waitForResponse(/.*\/api\/v1\/audit.*/);
|
||||
await page.goto("/audit-logs");
|
||||
await responsePromise;
|
||||
|
||||
await expect(page.locator("tbody tr").first()).toBeVisible({ timeout: 15000 });
|
||||
|
||||
await expect(page.locator("tbody tr").first()).toBeVisible({
|
||||
timeout: 15000,
|
||||
});
|
||||
await expect(page.locator("tbody tr")).toHaveCount(20);
|
||||
|
||||
const loadMoreBtn = page.getByRole("button", {
|
||||
@@ -129,7 +131,7 @@ test.describe("Audit Logs Management", () => {
|
||||
});
|
||||
await expect(loadMoreBtn).toBeVisible({ timeout: 10000 });
|
||||
await expect(loadMoreBtn).toBeEnabled();
|
||||
|
||||
|
||||
const nextResponsePromise = page.waitForResponse(/.*\/api\/v1\/audit.*/);
|
||||
await loadMoreBtn.click();
|
||||
await nextResponsePromise;
|
||||
@@ -144,7 +146,9 @@ test.describe("Audit Logs Management", () => {
|
||||
await page.goto("/audit-logs");
|
||||
await responsePromise;
|
||||
|
||||
await expect(page.locator("tbody tr").first()).toBeVisible({ timeout: 15000 });
|
||||
await expect(page.locator("tbody tr").first()).toBeVisible({
|
||||
timeout: 15000,
|
||||
});
|
||||
await expect(page.locator("tbody tr")).toHaveCount(20);
|
||||
|
||||
// Search by User ID
|
||||
@@ -174,7 +178,9 @@ test.describe("Audit Logs Management", () => {
|
||||
await page.goto("/audit-logs");
|
||||
await responsePromise;
|
||||
|
||||
await expect(page.locator("tbody tr").first()).toBeVisible({ timeout: 15000 });
|
||||
await expect(page.locator("tbody tr").first()).toBeVisible({
|
||||
timeout: 15000,
|
||||
});
|
||||
await expect(page.locator("tbody tr")).toHaveCount(20);
|
||||
|
||||
// Select "Failure" status
|
||||
|
||||
Reference in New Issue
Block a user