feat(GRO-1174): add pet size/coat dropdowns to booking wizard #8
@@ -111,7 +111,7 @@ 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;
|
||||||
const removeButton = removeButtons[0];
|
const removeButton = removeButtons[0]!;
|
||||||
if (!removeButton) return;
|
if (!removeButton) return;
|
||||||
fireEvent.click(removeButton);
|
fireEvent.click(removeButton);
|
||||||
expect(screen.queryByText("Allergic to chicken")).toBeNull();
|
expect(screen.queryByText("Allergic to chicken")).toBeNull();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useState, useEffect } from "react";
|
import { useState, useEffect } from "react";
|
||||||
import { PawPrint, Heart, Scissors, Clock, Edit3, Loader2, Star, X } from "lucide-react";
|
import { PawPrint, Heart, Scissors, Clock, Edit3, Loader2, Star } from "lucide-react";
|
||||||
import { PetForm } from "./PetForm.js";
|
import { PetForm } from "./PetForm.js";
|
||||||
import type { Pet } from "@groombook/types";
|
import type { Pet } from "@groombook/types";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user