fix(status): expose background failures

This commit is contained in:
Marc-André Bombeck committed 2026-07-28 14:00:44 +02:00
1 parent a689329e79
commit 8ece6f39cc
31 files changed
+854 -44

No files matched your search

@@ -217,6 +217,33 @@ describe("IntegrationStatusPill — a failing provider states its age", () => {
expect(html).toContain('data-state="warning"');
});
it("renders the localized failure count against the server threshold", () => {
const html = render(
<IntegrationStatusPill
state="warning"
lastSyncAt={new Date()}
now={new Date()}
failureCount={2}
failureThreshold={3}
/>,
);
expect(html).toContain("2/3");
});
it("omits a partial failure ratio", () => {
const html = render(
<IntegrationStatusPill
state="warning"
lastSyncAt={new Date()}
now={new Date()}
failureCount={2}
/>,
);
expect(html).not.toContain("2/");
});
it("keeps the German label free of a connection claim too", () => {
const html = render(
<IntegrationStatusPill