From: Afreen Misbah Date: Tue, 29 Jul 2025 18:01:15 +0000 (+0530) Subject: mgr/dasboard: fix pool e2e X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e1366bfffde8fe1ae46ce89279c5877cf9384eee;p=ceph.git mgr/dasboard: fix pool e2e - added data-testid for mirroring checkbox Signed-off-by: Afreen Misbah --- diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.po.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.po.ts index 63e3f4a3f9f0..25767fd97d6f 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.po.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.po.ts @@ -26,7 +26,7 @@ export class PoolPageHelper extends PageHelper { cy.get('[data-testid="pgNum"]').clear().type(`${placement_groups}`); this.setApplications(apps); if (mirroring) { - cy.get('#rbdMirroring').check({ force: true }); + cy.get('[data-testid="rbd-mirroring-check"]').check({ force: true }); } cy.get('cd-submit-button').click(); } @@ -36,7 +36,7 @@ export class PoolPageHelper extends PageHelper { this.navigateEdit(name); if (mirroring) { - cy.get('#rbdMirroring').should('be.checked'); + cy.get('[data-testid="rbd-mirroring-check"]').should('be.checked'); } cy.get('[data-testid="pgNum"]').clear().type(`${new_pg}`); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html index f68895512ab4..a8402259aaa2 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html @@ -203,6 +203,7 @@