Skip to content

Commit

Permalink
Removing social determinants of health from select query dropdown (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertandremitchell authored Oct 28, 2024
1 parent fdea5d6 commit ac82fbf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions query-connector/e2e/alternate_queries.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ test.describe("alternate queries with the Query Connector", () => {
await expect(page.getByText(TEST_PATIENT.MRN)).toBeVisible();
});

test("social determinants query with generalized function", async ({
page,
}) => {
// test("social determinants query with generalized function", async ({
test("cancer query with generalized function", async ({ page }) => {
await page.getByRole("button", { name: "Go to the demo" }).click();
await page.getByRole("button", { name: "Fill fields" }).click();
await page.getByRole("button", { name: "Search for patient" }).click();
Expand All @@ -54,7 +53,8 @@ test.describe("alternate queries with the Query Connector", () => {
await expect(
page.getByRole("heading", { name: "Select a query" }),
).toBeVisible();
await page.getByTestId("Select").selectOption("social-determinants");
// await page.getByTestId("Select").selectOption("social-determinants");
await page.getByTestId("Select").selectOption("cancer");
await page.getByRole("button", { name: "Submit" }).click();
await expect(page.getByText("Loading")).toHaveCount(0, { timeout: 10000 });

Expand Down
9 changes: 5 additions & 4 deletions query-connector/src/app/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ export const demoQueryOptions = [
{ value: "chlamydia", label: "Chlamydia case investigation" },
{ value: "gonorrhea", label: "Gonorrhea case investigation" },
{ value: "newborn-screening", label: "Newborn screening follow-up" },
{
value: "social-determinants",
label: "Gather social determinants of health",
},
// Temporarily remove social determinants
// {
// value: "social-determinants",
// label: "Gather social determinants of health",
// },
{ value: "syphilis", label: "Syphilis case investigation" },
];

Expand Down

0 comments on commit ac82fbf

Please sign in to comment.