From 97655a03ff85b26ed37ed253d1dc4b37f563e5b7 Mon Sep 17 00:00:00 2001 From: Harshit Shah Date: Fri, 20 Nov 2026 11:03:26 +0530 Subject: [PATCH] Fix IncidentGroups spec for assigned incidents returning to Ack #37613 made Assigned -> Ack a valid transition that clears the assignee, but the spec still expected the bulk Ack to change nothing. --- .../e2e/Features/AIMode/IncidentGroups.spec.ts | 14 +++++++------- .../ui/playwright/utils/incidentGroups.ts | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/AIMode/IncidentGroups.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/AIMode/IncidentGroups.spec.ts index 97165dab5af2..6e7c33a92e8d 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/AIMode/IncidentGroups.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/AIMode/IncidentGroups.spec.ts @@ -370,7 +370,7 @@ test.describe('AI mode Incident Manager — changing grouped incidents', () => { await afterAction(); }); - test('leaves assigned incidents as they are when acknowledging', async ({ + test('returns assigned incidents to Ack and clears their assignee', async ({ page, browser, }) => { @@ -386,18 +386,18 @@ test.describe('AI mode Incident Manager — changing grouped incidents', () => { await page.getByTestId('incident-groups-status-Ack').click(); await confirmBulkChange(page); - // The workflow has no way back from Assigned to Ack, so nothing is sent. - await toastNotification( - page, - 'No incident in the selected groups can take that change' - ); + // ADR:2026-11-17-returning-incidents-to-triage-clears-assignees + await toastNotification(page, 'Incidents updated: 2'); const { apiContext, afterAction } = await performAdminLogin(browser); for (const testCaseFqn of seed.testCaseFqns) { const incident = await getLatestIncident(apiContext, testCaseFqn); - expect(incident?.testCaseResolutionStatusType).toBe('Assigned'); + expect(incident?.testCaseResolutionStatusType).toBe('Ack'); + expect( + incident?.testCaseResolutionStatusDetails?.assignee + ).toBeUndefined(); } await afterAction(); diff --git a/openmetadata-ui/src/main/resources/ui/playwright/utils/incidentGroups.ts b/openmetadata-ui/src/main/resources/ui/playwright/utils/incidentGroups.ts index b481d3530629..d1d64a3c3c37 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/utils/incidentGroups.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/utils/incidentGroups.ts @@ -58,7 +58,7 @@ export type IncidentSeed = { // The row count and column count incidents, both assigned to `assignee`. testCaseFqns: string[]; rowCountName: string; - // Left unassigned, so it is still New: the one incident here Ack can move. + // Left unassigned, so it is still New. newIncidentFqn: string; };