Skip to content

Commit

Permalink
tests: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
vacekj committed Jan 25, 2024
1 parent 69623f5 commit 0852220
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,20 +369,6 @@ describe("voting cart", () => {
},
});

// click add to cart
const addToCart = screen.getAllByTestId("add-to-cart");
fireEvent.click(addToCart[0]);

await waitFor(
() => {
expect(
screen.queryAllByTestId("remove-from-cart")[0]
).toBeInTheDocument();
expect(screen.queryByTestId("add-to-cart")).not.toBeInTheDocument();
},
{ timeout: 3000 }
);

const removeFromCart = screen.getAllByTestId("remove-from-cart");
fireEvent.click(removeFromCart[0]);

Expand Down

0 comments on commit 0852220

Please sign in to comment.