Rollen Chunk 5: Genehmigungs-Status mit Eigen-UI
Docker Image / test (push) Canceled after 0s
Docker Image / image (push) Canceled after 0s

This commit is contained in:
loki committed 2026-10-11 19:31:45 +02:00
1 parent 0592e53da1
commit a36b7cdd27
1 file changed
+17
+17
View File
@@ -33,6 +33,7 @@ const baseProps = {
startDate: "2026-04-14",
endDate: "2026-04-14",
dayFraction: "full" as const,
status: "bestätigt" as const,
units: 2,
},
],
@@ -248,6 +249,7 @@ test("day tooltips name the vacation range", () => {
startDate: "2026-04-13",
endDate: "2026-04-17",
dayFraction: "full",
status: "bestätigt" as const,
units: 10,
},
]}
@@ -295,3 +297,18 @@ test("marks earned overtime and deductions", () => {
"ycell-overtime",
);
});
test("marks requested days dashed instead of solid vacation", () => {
render(
<YearTable
{...baseProps}
vacationRequests={[
{ id: 1, startDate: "2026-04-13", endDate: "2026-04-13", dayFraction: "full" as const, status: "beantragt" as const, units: 2 },
]}
onSelectDate={() => {}}
/>,
);
const cell = screen.getByRole("button", { name: "2026-04-13" });
expect(cell).toHaveClass("ycell-requested");
expect(cell).not.toHaveClass("ycell-vacation");
});