From 8b1e901f8364ed8ae2f252fb3226fa3f6ac12f4c Mon Sep 17 00:00:00 2001
From: "pulse-triage[bot]"
<249995291+pulse-triage[bot]@users.noreply.github.com>
Date: Tue, 8 Sep 2026 05:11:21 +0100
Subject: [PATCH] test(alerts): satisfy incident fixture types
The integrated retry test used incomplete structural casts that the full frontend type-check rejected. Mark the intentional hook subset adaptation explicitly and provide every required incident identity field without changing runtime behavior.\n\nChange-source: pulse-maintainer
Change-source: pulse-maintainer
---
.../__tests__/AlertResourceIncidentsPanel.test.tsx | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/frontend-modern/src/features/alerts/__tests__/AlertResourceIncidentsPanel.test.tsx b/frontend-modern/src/features/alerts/__tests__/AlertResourceIncidentsPanel.test.tsx
index c1eaedd60..653d74875 100644
--- a/frontend-modern/src/features/alerts/__tests__/AlertResourceIncidentsPanel.test.tsx
+++ b/frontend-modern/src/features/alerts/__tests__/AlertResourceIncidentsPanel.test.tsx
@@ -36,7 +36,7 @@ describe('AlertResourceIncidentsPanel', () => {
render(() => {
state = useAlertResourceIncidentsState();
return surface === 'inline' ? (
-
+
) : (
{
typeof MobileAlertHistoryInvestigationDialog
>[0]['investigation']['alert'],
}}
- state={state as AlertHistoryState}
+ state={state as unknown as AlertHistoryState}
onClose={() => state.setResourceIncidentPanel(null)}
/>
);
@@ -69,14 +69,17 @@ describe('AlertResourceIncidentsPanel', () => {
resolve([
{
id: 'retained',
+ alertIdentifier: 'resource-1::connectivity',
alertType: 'connectivity',
level: 'critical',
+ resourceId: 'resource-1',
+ resourceName: 'Resource',
status: 'resolved',
acknowledged: false,
events: [],
openedAt: '2026-09-08T00:00:00Z',
message: 'Retained connection incident',
- } as Incident,
+ },
]);
await waitFor(() => expect(screen.getByText('Retained connection incident')).toBeVisible());
expect(read).toHaveBeenLastCalledWith('resource-1', 10);