From ac82fbfb64df79c4efdcacc5838f651654f58dfa Mon Sep 17 00:00:00 2001 From: Rob Mitchell <40571882+robertandremitchell@users.noreply.github.com> Date: Mon, 28 Oct 2024 09:50:16 -0400 Subject: [PATCH] Removing social determinants of health from select query dropdown (#62) --- query-connector/e2e/alternate_queries.spec.ts | 8 ++++---- query-connector/src/app/constants.ts | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/query-connector/e2e/alternate_queries.spec.ts b/query-connector/e2e/alternate_queries.spec.ts index fb798a842..2f0b3c055 100644 --- a/query-connector/e2e/alternate_queries.spec.ts +++ b/query-connector/e2e/alternate_queries.spec.ts @@ -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(); @@ -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 }); diff --git a/query-connector/src/app/constants.ts b/query-connector/src/app/constants.ts index a2dc9fe02..290ff83b6 100644 --- a/query-connector/src/app/constants.ts +++ b/query-connector/src/app/constants.ts @@ -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" }, ];