Skip to content

Commit

Permalink
waitfor check
Browse files Browse the repository at this point in the history
  • Loading branch information
nlkluth committed Nov 17, 2023
1 parent c6c3d9a commit 589ab60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const API: StoryObj<typeof Cart> = {
await step("add to cart", async () => {
await userEvent.click(canvas.getByRole("button", { name: /product1/i }));
await userEvent.click(canvas.getByRole("button", { name: /product2/i }));
expect(canvas.getByTestId("cart")).toHaveTextContent("Cart3");
await waitFor(() => expect(canvas.getByTestId("cart")).toHaveTextContent("Cart3"));
});

await step("open cart and modify quantity", async () => {
Expand Down

0 comments on commit 589ab60

Please sign in to comment.