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: v18.1.0~362^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F50114%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 --- 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; });