Skip to content

Commit

Permalink
update tests to match main changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BobanL committed Nov 29, 2024
1 parent a1200f6 commit ca9938a
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion containers/ecr-viewer/e2e/ecrLibrary.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test("eCR search filters results", async ({ page }) => {
await page.goto("http://localhost:3000/ecr-viewer");
await page.getByTestId("textInput").click();
await page.getByTestId("textInput").fill("test");
await page.getByTestId("button").click();
await page.getByTestId("form").getByTestId("button").click();
await expect(
page.getByRole("cell", { name: "Adam Test DOB: 01/01/" }).first(),
).toBeVisible();
Expand Down
12 changes: 3 additions & 9 deletions containers/ecr-viewer/e2e/ecrViewer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,9 @@ test("eCR Viewer matches snapshot fully expanded", async ({ page }) => {
await page.goto(
"http://localhost:3000/ecr-viewer/view-data?id=1.2.840.114350.1.13.297.3.7.8.688883.573942",
);
await page.getByTestId("accordionButton_Giardiasis-(disorder)").click();
await page
.getByTestId("accordionButton_Cryptosporidiosis-(disorder)")
.click();
await page
.getByTestId(
"accordionButton_Infection-caused-by-Entamoeba-histolytica-(disorder)",
)
.click();
await page.getByTestId("accordionButton_Giardiasis").click();
await page.getByTestId("accordionButton_Cryptosporidiosis").click();
await page.getByTestId("accordionButton_Amebiasis").click();
await page.getByRole("button", { name: "Expand all labs" }).click();
await expect(page).toHaveScreenshot({ fullPage: true });
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ca9938a

Please sign in to comment.