Skip to content

Commit

Permalink
Enhance text assert
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 committed Oct 8, 2024
1 parent 0d29a1d commit 30bb9fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/dependencies/global.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ test.describe("Ingest initial data", () => {
// Assert
await expect(
page.locator(".pf-v5-c-expandable-section__toggle-text")
).toContainText("6 of 6 files uploaded", { timeout: 60_000 });
).toContainText(`${files.length} of ${files.length} files uploaded`, {
timeout: 60_000,
});
});

test("Advisories", async ({ page, baseURL }) => {
Expand Down Expand Up @@ -80,6 +82,8 @@ test.describe("Ingest initial data", () => {
// Assert
await expect(
page.locator(".pf-v5-c-expandable-section__toggle-text")
).toContainText("29 of 29 files uploaded", { timeout: 60_000 });
).toContainText(`${files.length} of ${files.length} files uploaded`, {
timeout: 60_000,
});
});
});

0 comments on commit 30bb9fe

Please sign in to comment.