Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f1bb7c4fa6 | |||
| 56b11befe9 | |||
| f414d2589f | |||
| d1f8d27d1c |
@@ -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
-1
@@ -519,7 +519,7 @@ export function BookPage() {
|
|||||||
<option value="small">Small (under 15 lbs)</option>
|
<option value="small">Small (under 15 lbs)</option>
|
||||||
<option value="medium">Medium (15–40 lbs)</option>
|
<option value="medium">Medium (15–40 lbs)</option>
|
||||||
<option value="large">Large (40–80 lbs)</option>
|
<option value="large">Large (40–80 lbs)</option>
|
||||||
<option value="x-large">X-Large (over 80 lbs)</option>
|
<option value="xlarge">X-Large (over 80 lbs)</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user