From 67ca3c231aaf1cc086c000310f250a4a7e71de16 Mon Sep 17 00:00:00 2001 From: Ihor Yeromin Date: Thu, 6 Nov 2025 18:46:23 +0100 Subject: [PATCH] Test: Fix array element removal in adhoc filter e2e test (#113514) fix(test): adhoc-filter-from-panel --- e2e-playwright/dashboards-suite/adhoc-filter-from-panel.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e-playwright/dashboards-suite/adhoc-filter-from-panel.spec.ts b/e2e-playwright/dashboards-suite/adhoc-filter-from-panel.spec.ts index 4e008fc3b5f..8ad6b634a87 100644 --- a/e2e-playwright/dashboards-suite/adhoc-filter-from-panel.spec.ts +++ b/e2e-playwright/dashboards-suite/adhoc-filter-from-panel.spec.ts @@ -52,7 +52,7 @@ test.describe( // during the test, we select the "inner_eval" slice to filter; this simulates the behavior // of prometheus applying that filter and removing dataframes from the response. if (route.request().postData()?.includes('{slice=\\\"inner_eval\\\"}')) { - delete fixture.results.A.frames[1]; + fixture.results.A.frames.splice(1, 1); } await route.fulfill({