From b2b70cc489e8c96160abbefa7dc873fce3c46c0d Mon Sep 17 00:00:00 2001 From: carmen-chau <80921817+carmen-chau@users.noreply.github.com> Date: Sun, 14 Jan 2024 15:58:04 -0500 Subject: [PATCH] revised a test in simpleOrderTable.test.tsx --- .../SimpleOrderTables/SimpleOrderTables.test.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hackathon_site/dashboard/frontend/src/components/teamDetail/SimpleOrderTables/SimpleOrderTables.test.tsx b/hackathon_site/dashboard/frontend/src/components/teamDetail/SimpleOrderTables/SimpleOrderTables.test.tsx index bb26d64d1..0c73071ee 100644 --- a/hackathon_site/dashboard/frontend/src/components/teamDetail/SimpleOrderTables/SimpleOrderTables.test.tsx +++ b/hackathon_site/dashboard/frontend/src/components/teamDetail/SimpleOrderTables/SimpleOrderTables.test.tsx @@ -59,12 +59,15 @@ describe("", () => { } else { expect(getByText(/reject order/i)).toBeInTheDocument(); } - if (status === "Submitted") { + if (status === "Packing") { + /*TODO: Changed from status === "Submitted" to status === "Packing"*/ expect(getByText(/complete order/i)).toBeInTheDocument(); expect(queryByText(/picked up/i)).not.toBeInTheDocument(); - } else { + } else if (status === "Submitted") { expect(queryByText(/complete order/i)).not.toBeInTheDocument(); - expect(getByText(/picked up/i)).toBeInTheDocument(); + expect(queryByText(/ready for packing/i)).toBeInTheDocument(); + //expect(queryByText(/complete order/i)).not.toBeInTheDocument(); + //expect(getByText(/picked up/i)).toBeInTheDocument(); } } });