From 529db3794ff021908051c283e59a0edad5e24a3e Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Tue, 14 Feb 2023 21:04:26 +0530 Subject: [PATCH] mgr/dashboard: ignore the rules 400 error in dashboard kcli e2e Fixes: https://tracker.ceph.com/issues/58722 Signed-off-by: Nizamudeen A (cherry picked from commit a9634e902afcd2deda490df08080686d4dc110e0) --- .../mgr/dashboard/frontend/cypress/support/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/cypress/support/index.ts b/src/pybind/mgr/dashboard/frontend/cypress/support/index.ts index f2307131aa626..7cd93a4134961 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/support/index.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/support/index.ts @@ -7,5 +7,11 @@ afterEach(() => { }); Cypress.on('uncaught:exception', (err: Error) => { - return !err.message.includes('ResizeObserver loop limit exceeded'); + if ( + err.message.includes('ResizeObserver loop limit exceeded') || + err.message.includes('api/prometheus/rules') + ) { + return false; + } + return true; }); -- 2.39.5