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:44 +02:00
1 parent ad57a33c11
commit 96b19f4de3
1 file changed
+9 -9
+9 -9
View File
@@ -16,12 +16,12 @@ test("compares the current year against the previous one", async () => {
mockOverview.mockResolvedValueOnce({
year: 2025,
overtimeMinutes: 0,
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 60, remainingUnits: 0 },
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 60, pendingUnits: 0, remainingUnits: 0 },
});
mockOverview.mockResolvedValueOnce({
year: 2026,
overtimeMinutes: 0,
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 10, remainingUnits: 50 },
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 10, pendingUnits: 0, remainingUnits: 50 },
});
mockCalendar.mockResolvedValue({
start: "2026-01-01",
@@ -55,7 +55,7 @@ test("compares sick days of both years", async () => {
mockOverview.mockResolvedValue({
year: 2026,
overtimeMinutes: 0,
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 0, remainingUnits: 60 },
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 0, pendingUnits: 0, remainingUnits: 60 },
});
mockCalendar.mockResolvedValueOnce({
start: "2025-01-01",
@@ -93,12 +93,12 @@ test("groups figures into vacation and overtime clusters", async () => {
mockOverview.mockResolvedValueOnce({
year: 2025,
overtimeMinutes: 0,
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 60, remainingUnits: 0 },
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 60, pendingUnits: 0, remainingUnits: 0 },
});
mockOverview.mockResolvedValueOnce({
year: 2026,
overtimeMinutes: 0,
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 10, remainingUnits: 50 },
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 10, pendingUnits: 0, remainingUnits: 50 },
});
render(<YearComparison year={2026} />);
const table = await screen.findByRole("table");
@@ -114,12 +114,12 @@ test("shows changes against the previous year", async () => {
mockOverview.mockResolvedValueOnce({
year: 2025,
overtimeMinutes: 0,
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 60, remainingUnits: 0 },
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 60, pendingUnits: 0, remainingUnits: 0 },
});
mockOverview.mockResolvedValueOnce({
year: 2026,
overtimeMinutes: 0,
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 10, remainingUnits: 50 },
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 10, pendingUnits: 0, remainingUnits: 50 },
});
render(<YearComparison year={2026} />);
const table = await screen.findByRole("table");
@@ -132,12 +132,12 @@ test("marks the current year column", async () => {
mockOverview.mockResolvedValueOnce({
year: current - 1,
overtimeMinutes: 0,
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 60, remainingUnits: 0 },
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 60, pendingUnits: 0, remainingUnits: 0 },
});
mockOverview.mockResolvedValueOnce({
year: current,
overtimeMinutes: 0,
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 10, remainingUnits: 50 },
vacation: { entitlementUnits: 60, carryoverUnits: 0, usedUnits: 10, pendingUnits: 0, remainingUnits: 50 },
});
render(<YearComparison year={current} />);
const table = await screen.findByRole("table");