From: Nizamudeen A Date: Tue, 14 Feb 2023 15:34:26 +0000 (+0530) Subject: mgr/dashboard: ignore the rules 400 error in dashboard kcli e2e X-Git-Tag: v17.2.6~24^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F50450%2Fhead;p=ceph.git 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) --- diff --git a/src/pybind/mgr/dashboard/frontend/cypress/support/index.ts b/src/pybind/mgr/dashboard/frontend/cypress/support/index.ts index 9a7d66865082..16099815a7dd 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/support/index.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/support/index.ts @@ -8,5 +8,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; });