Rollen Chunk 5: Genehmigungs-Status mit Eigen-UI
This commit is contained in:
1 parent
ad57a33c11
commit
96b19f4de3
1 file changed
+9
-9
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user