feat: extract groombook/web from monorepo (GRO-903) #1
@@ -111,7 +111,9 @@ describe("PetForm", () => {
|
|||||||
render(<PetForm pet={petWithAlert} onSave={onSave} onCancel={onCancel} />);
|
render(<PetForm pet={petWithAlert} onSave={onSave} onCancel={onCancel} />);
|
||||||
const removeButtons = screen.getAllByRole("button", { name: "" });
|
const removeButtons = screen.getAllByRole("button", { name: "" });
|
||||||
if (removeButtons.length === 0) return;
|
if (removeButtons.length === 0) return;
|
||||||
fireEvent.click(removeButtons[0]);
|
const removeButton = removeButtons[0];
|
||||||
|
if (!removeButton) return;
|
||||||
|
fireEvent.click(removeButton);
|
||||||
expect(screen.queryByText("Allergic to chicken")).toBeNull();
|
expect(screen.queryByText("Allergic to chicken")).toBeNull();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user