Hinweise optimiert
Test and publish container images / test (push) Successful in 2m27s
Test and publish container images / publish (push) Failing after 4s

This commit is contained in:
BuTzZ
2026-07-27 13:04:32 +02:00
parent 9813a1fafb
commit b98ec8bc6f
34 changed files with 500 additions and 399 deletions
+6 -3
View File
@@ -22,9 +22,9 @@ describe("NavigationToolRail", () => {
anchor: "alarm",
conditions: "active",
upcoming: "caution",
route: "stale"
route: "caution"
}}
badges={{ upcoming: 123 }}
badges={{ upcoming: 123, route: 4 }}
/>
);
@@ -58,7 +58,10 @@ describe("NavigationToolRail", () => {
expect(upcoming).toHaveAttribute("data-status", "caution");
expect(within(upcoming).getByText("99+")).toBeVisible();
const route = screen.getByRole("button", { name: /Route, Daten veraltet, öffnen/ });
const route = screen.getByRole("button", {
name: /Route, Warnung, 4 Hinweise, öffnen/
});
expect(within(route).getByText("4")).toBeVisible();
fireEvent.click(route);
expect(onSelect).toHaveBeenCalledWith("route");
});