fix: give key_rotation_email TextInput a distinct test id to prevent duplicate custom-interval-input

This commit is contained in:
Ishaan Jaffer 2026-04-01 08:50:01 -07:00
parent 90246082f4
commit e2f05eeded

View file

@ -53,7 +53,7 @@ vi.mock("@tremor/react", () => ({
};
return (
<input
data-testid={name === "duration" ? "duration-input" : "custom-interval-input"}
data-testid={name === "duration" ? "duration-input" : name === "key_rotation_email" ? "key-rotation-email-input" : "custom-interval-input"}
value={value}
onChange={handleChange}
placeholder={placeholder}