From fd2f1fdb0f4b852134b8b2c44fb9dfa55492e606 Mon Sep 17 00:00:00 2001 From: David Rajnoha Date: Wed, 1 Jul 2026 11:17:23 +0200 Subject: [PATCH] fix: make Incidents tab selector case-insensitive The console changed the data-test-id from "horizontal-link-incidents" to "horizontal-link-Incidents". Use the CSS `i` flag so the selector matches both casings. Co-Authored-By: Claude Opus 4.6 (1M context) --- web/cypress/views/incidents-page.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/cypress/views/incidents-page.ts b/web/cypress/views/incidents-page.ts index 1044de5cb..02bab449e 100644 --- a/web/cypress/views/incidents-page.ts +++ b/web/cypress/views/incidents-page.ts @@ -17,9 +17,8 @@ const _resetSearchState = () => { _quietSearch = false; }; -// Selector for the Incidents tab rendered by the Console SDK's HorizontalNav. -// The Console assigns data-test-id="horizontal-link-" to each tab. -const _INCIDENTS_TAB_SELECTOR = '[data-test-id="horizontal-link-incidents"]'; +// Case-insensitive selector — the console has shipped both "incidents" and "Incidents". +const _INCIDENTS_TAB_SELECTOR = '[data-test-id="horizontal-link-incidents" i]'; // Selector for bar group containers in the incidents chart (one per incident). const _BAR_GROUP_SELECTOR = 'g[role="presentation"][data-test*="incidents-chart-bar-"]';