From 0bfb1bf3f182d791d1e82e6a695ee3bf59bfd2ec Mon Sep 17 00:00:00 2001 From: Afreen Misbah Date: Wed, 12 Jun 2024 21:20:04 +0530 Subject: [PATCH] mgr/dashboard: Fix login and notification e2e tests Fixes https://tracker.ceph.com/issues/66453 - `#rbdMirroring` checkbox is not found due to which both of these tests are failing on most of the Prs - this is due to the pool helper function which checks for an existing app passed in parameter - if app is not found, then mirroring checkbox remains hidden Signed-off-by: Afreen Misbah --- .../mgr/dashboard/frontend/cypress/e2e/cluster/logs.e2e-spec.ts | 2 +- .../dashboard/frontend/cypress/e2e/ui/notification.e2e-spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/logs.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/logs.e2e-spec.ts index 606f6a3cd9df6..87184a1e24128 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/logs.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/cluster/logs.e2e-spec.ts @@ -46,7 +46,7 @@ describe('Logs page', () => { describe('audit logs respond to pool creation and deletion test', () => { it('should create pool and check audit logs reacted', () => { pools.navigateTo('create'); - pools.create(poolname, 8); + pools.create(poolname, 8, 'rbd'); pools.navigateTo(); pools.existTableCell(poolname, true); logs.checkAuditForPoolFunction(poolname, 'create', hour, minute); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/notification.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/notification.e2e-spec.ts index 1f7e57325cebb..18948f0d40801 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/notification.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/notification.e2e-spec.ts @@ -9,7 +9,7 @@ describe('Notification page', () => { before(() => { cy.login(); pools.navigateTo('create'); - pools.create(poolName, 8); + pools.create(poolName, 8, 'rbd'); pools.edit_pool_pg(poolName, 4, false); }); -- 2.39.5