Skip to content

Commit

Permalink
increase timeout for the loading exits
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Zhao committed Oct 11, 2024
1 parent d5f2151 commit 099c743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions containers/tefca-viewer/e2e/query_workflow.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ test.describe("querying with the TryTEFCA viewer", () => {

// Among verification, make sure phone number is right
await page.getByRole("button", { name: "Search for patient" }).click();
await expect(page.getByText("Loading")).toHaveCount(0);
await expect(page.getByText("Loading")).toHaveCount(0, { timeout: 10000 });
await expect(
page.getByRole("heading", { name: "Patient Record" }),
).toBeVisible();
Expand Down Expand Up @@ -176,7 +176,7 @@ test.describe("querying with the TryTEFCA viewer", () => {
await page.getByLabel("Query", { exact: true }).selectOption("chlamydia");
await page.getByRole("button", { name: "Fill fields" }).click();
await page.getByRole("button", { name: "Search for patient" }).click();
await expect(page.getByText("Loading")).toHaveCount(0);
await expect(page.getByText("Loading")).toHaveCount(0, { timeout: 10000 });

await expect(
page.getByRole("heading", { name: "Patient Record" }),
Expand Down

0 comments on commit 099c743

Please sign in to comment.