Rollen Chunk 5: Genehmigungs-Status mit Eigen-UI
This commit is contained in:
1 parent
dce50f718d
commit
0729864f73
1 file changed
+6
@@ -68,6 +68,7 @@ test("shows holiday and vacation states", () => {
|
|||||||
startDate: "2026-10-03",
|
startDate: "2026-10-03",
|
||||||
endDate: "2026-10-03",
|
endDate: "2026-10-03",
|
||||||
dayFraction: "half",
|
dayFraction: "half",
|
||||||
|
status: "bestätigt" as const,
|
||||||
units: 1,
|
units: 1,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -89,6 +90,7 @@ test("shows the full range for multi-day vacation", () => {
|
|||||||
startDate: "2026-10-28",
|
startDate: "2026-10-28",
|
||||||
endDate: "2026-11-04",
|
endDate: "2026-11-04",
|
||||||
dayFraction: "full",
|
dayFraction: "full",
|
||||||
|
status: "bestätigt" as const,
|
||||||
units: 12,
|
units: 12,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -182,6 +184,7 @@ test("books vacation inline and notifies", async () => {
|
|||||||
startDate: "2026-10-13",
|
startDate: "2026-10-13",
|
||||||
endDate: "2026-10-13",
|
endDate: "2026-10-13",
|
||||||
dayFraction: "half",
|
dayFraction: "half",
|
||||||
|
status: "bestätigt" as const,
|
||||||
units: 1,
|
units: 1,
|
||||||
});
|
});
|
||||||
const onBooked = vi.fn();
|
const onBooked = vi.fn();
|
||||||
@@ -212,6 +215,7 @@ test("cancels a booked vacation after confirmation", async () => {
|
|||||||
startDate: "2026-10-13",
|
startDate: "2026-10-13",
|
||||||
endDate: "2026-10-13",
|
endDate: "2026-10-13",
|
||||||
dayFraction: "full",
|
dayFraction: "full",
|
||||||
|
status: "bestätigt" as const,
|
||||||
units: 2,
|
units: 2,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -231,6 +235,7 @@ test("aborts the cancellation", () => {
|
|||||||
startDate: "2026-10-13",
|
startDate: "2026-10-13",
|
||||||
endDate: "2026-10-13",
|
endDate: "2026-10-13",
|
||||||
dayFraction: "full",
|
dayFraction: "full",
|
||||||
|
status: "bestätigt" as const,
|
||||||
units: 2,
|
units: 2,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -251,6 +256,7 @@ test("shows cancellation errors inside the modal", async () => {
|
|||||||
startDate: "2026-10-13",
|
startDate: "2026-10-13",
|
||||||
endDate: "2026-10-13",
|
endDate: "2026-10-13",
|
||||||
dayFraction: "full",
|
dayFraction: "full",
|
||||||
|
status: "bestätigt" as const,
|
||||||
units: 2,
|
units: 2,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user