fix: validate mobile event drawer steps with schema
This commit is contained in:
@@ -77,6 +77,14 @@ describe("EventDialog public modes", () => {
|
||||
expect(source).toContain("setStep(1)");
|
||||
});
|
||||
|
||||
test("event-dialog validates mobile drawer steps with schema-backed step validation", () => {
|
||||
const source = readFileSync("src/components/event-dialog.tsx", "utf8");
|
||||
|
||||
expect(source).toContain("validateEventFormStep");
|
||||
expect(source).toContain("getValues()");
|
||||
expect(source).toContain("fieldErrors");
|
||||
});
|
||||
|
||||
test("dialog.tsx no longer forks on isMobile in DialogContent", () => {
|
||||
const source = readFileSync("src/components/ui/dialog.tsx", "utf8");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user