From: Afreen Misbah Date: Wed, 12 Jun 2024 15:50:04 +0000 (+0530) Subject: mgr/dashboard: Fix login and notification e2e tests X-Git-Tag: v20.0.0~1748^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0bfb1bf3f182d791d1e82e6a695ee3bf59bfd2ec;p=ceph.git 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 --- 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); });