]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dasboard: fix pool e2e 64680/head
authorAfreen Misbah <afreen@ibm.com>
Tue, 29 Jul 2025 18:01:15 +0000 (23:31 +0530)
committerAfreen Misbah <afreen@ibm.com>
Tue, 29 Jul 2025 19:43:25 +0000 (01:13 +0530)
- added data-testid for mirroring checkbox

Signed-off-by: Afreen Misbah <afreen@ibm.com>
src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.po.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html

index 63e3f4a3f9f0ccbe95036f196deda2066f9c91d4..25767fd97d6f644c4decc797dcde862466a9b54b 100644 (file)
@@ -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}`);
index f68895512ab4db87865c046abb35341eae9fd43b..a8402259aaa275edb4f9f6fa43fa48637691e8b8 100644 (file)
             <div class="custom-control custom-checkbox">
               <input class="custom-control-input"
                      id="rbdMirroring"
+                     data-testid="rbd-mirroring-check"
                      type="checkbox"
                      formControlName="rbdMirroring">
               <label class="custom-control-label"