Skip to content

Commit

Permalink
revised a test in simpleOrderTable.test.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
carmen-chau committed Jan 14, 2024
1 parent 4ee7c34 commit b2b70cc
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,15 @@ describe("<SimplePendingOrderFulfillmentTable />", () => {
} 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();
}
}
});
Expand Down

0 comments on commit b2b70cc

Please sign in to comment.