]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: ignore the rules 400 error in dashboard kcli e2e 50914/head
authorNizamudeen A <nia@redhat.com>
Tue, 14 Feb 2023 15:34:26 +0000 (21:04 +0530)
committerNizamudeen A <nia@redhat.com>
Thu, 6 Apr 2023 06:31:36 +0000 (12:01 +0530)
Fixes: https://tracker.ceph.com/issues/58722
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit a9634e902afcd2deda490df08080686d4dc110e0)

src/pybind/mgr/dashboard/frontend/cypress/support/index.ts

index f2307131aa6268a70b563d6922b1c152ab4e8527..7cd93a4134961093847b1a30057c931405cb4258 100644 (file)
@@ -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;
 });