Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #2610

Closed
wants to merge 6 commits into from
Closed

test #2610

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions containers/tefca-viewer/e2e/query_workflow.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ test.describe("querying with the TryTEFCA viewer", () => {

// Let's get a little schwifty: there are multiple possible resolutions for 'Observations',
// so we can chain things to get the table header to make sure the accordion is open
await expect(
page
.getByTestId("accordionItem_observations")
.getByRole("heading", { name: "Observations" }),
).toBeVisible();
expect(
page.getByRole("button", {
name: "Observations",
expanded: false,
}),
);
// We can also just directly ask the page to find us filtered table rows
await expect(page.locator("tbody").locator("tr")).toHaveCount(5);

Expand Down Expand Up @@ -270,12 +271,12 @@ test.describe("Test the user journey of a 'tester'", () => {
);

// Check that there are multiple rows in the table
await expect(page.locator("tbody").locator("tr")).toHaveCount(9);
await expect(page.locator("tbody").locator("tr")).toHaveCount(10);

// Click on the first patient's "View Record" button
await page.locator(':nth-match(:text("View Record"), 1)').click();

// Make sure we have a results page with a single patient & appropriate back buttons
// Make sure we have a results page with a single patient & appropriate back button
await expect(
page.getByRole("heading", { name: "Query Results" }),
).toBeVisible();
Expand Down
Loading