Skip to content

Commit c965eaa

Browse files
DavidRajnohaclaude
andcommitted
fix(tests): keep incident selected after findIncidentWithAlert succeeds
searchForAlertInIncidentByFilter unconditionally cleared all filters after checking each incident, including the one where the alert was found. This deselected the incident before callers could inspect its alert details, causing 80s timeouts on incidents-details-table. Only clear filters when moving to the next incident (alert not found). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0a520a2 commit c965eaa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

web/cypress/views/incidents-page.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,8 +946,10 @@ export const incidentsPage = {
946946
.scrollIntoView()
947947
.then(() => incidentsPage.searchAllComponentsInIncident(alertName, 0))
948948
.then((found: boolean) => {
949-
incidentsPage.clearAllFilters();
950-
cy.wait(500, _qLog());
949+
if (!found) {
950+
incidentsPage.clearAllFilters();
951+
cy.wait(500, _qLog());
952+
}
951953
return cy.wrap(found, _qLog());
952954
});
953955
},

0 commit comments

Comments
 (0)