Merge pull request #50114 from rhcs-dashboard/cephadm-prom-401-error

mgr/dashboard: ignore the rules 400 error in dashboard kcli e2e

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
This commit is contained in:
Nizamudeen A 2023-02-16 12:20:51 +05:30 committed by GitHub
commit 8ea1623541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
});