diff --git a/knowx/src/tests/compare/Compare_Card.test.tsx b/knowx/src/tests/compare/Compare_Card.test.tsx index 114735a..b4932a9 100644 --- a/knowx/src/tests/compare/Compare_Card.test.tsx +++ b/knowx/src/tests/compare/Compare_Card.test.tsx @@ -31,7 +31,7 @@ describe("Compare_Card", () => { expect(screen.getByText("Initial Title")).toBeInTheDocument() expect(screen.getByText("Initial Description")).toBeInTheDocument() - expect(screen.getByText("Category1: Value1")).toBeInTheDocument() + expect(screen.getByText("Category1")).toBeInTheDocument() }) it("updates data on title selection", () => { @@ -50,6 +50,6 @@ describe("Compare_Card", () => { expect(screen.getByText("Service1")).toBeInTheDocument() expect(screen.getByText("Description1")).toBeInTheDocument() - expect(screen.getByText("Category1: Value1")).toBeInTheDocument() + expect(screen.getByText("Category1")).toBeInTheDocument() }) }) diff --git a/knowx/src/tests/dashboard/inputBar.test.tsx b/knowx/src/tests/dashboard/inputBar.test.tsx index 109c868..bebfbca 100644 --- a/knowx/src/tests/dashboard/inputBar.test.tsx +++ b/knowx/src/tests/dashboard/inputBar.test.tsx @@ -66,7 +66,7 @@ test("Input Bar Correct Redirect Test", async () => { // Click on the search button act(() => { - screen.getByTitle("Search Button").click() + screen.getByTitle("searchButton").click() }) // Check if the navigate function was called with the correct argument @@ -83,7 +83,7 @@ test("Input Bar Correct Redirect Test 2", async () => { // Click on the search button act(() => { - screen.getByTitle("Search Button").click() + screen.getByTitle("searchButton").click() }) // Check if the navigate function was called with the correct argument diff --git a/knowx/src/tests/history/checkUserMenu.test.tsx b/knowx/src/tests/history/checkUserMenu.test.tsx index 376c3dd..c08df5b 100644 --- a/knowx/src/tests/history/checkUserMenu.test.tsx +++ b/knowx/src/tests/history/checkUserMenu.test.tsx @@ -21,7 +21,7 @@ test("Check User Menu on Dashboard", async () => { ) act(() => { - screen.getByRole("button", { name: "" }).click() + screen.getByRole("button", { name: "dropdown-btn" }).click() }) expect(screen.getByText("History")).toBeVisible() @@ -43,7 +43,7 @@ test("Check User Menu on History", async () => { ) act(() => { - screen.getByRole("button", { name: "" }).click() + screen.getByRole("button", { name: "dropdown-btn" }).click() }) expect(screen.getByText("Dashboard")).toBeVisible() diff --git a/knowx/src/tests/history/historyList.test.tsx b/knowx/src/tests/history/historyList.test.tsx index 33584a5..f35720e 100644 --- a/knowx/src/tests/history/historyList.test.tsx +++ b/knowx/src/tests/history/historyList.test.tsx @@ -69,7 +69,7 @@ test("Search History List Redirect Test", async () => { act(() => { screen .getByRole("row", { - name: "test", + name: "test 1/1/2021 6:00", }) .click() })