Skip to content

Commit e1366bf

Browse files
committed
mgr/dasboard: fix pool e2e
- added data-testid for mirroring checkbox Signed-off-by: Afreen Misbah <[email protected]>
1 parent cd3832e commit e1366bf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.po.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class PoolPageHelper extends PageHelper {
2626
cy.get('[data-testid="pgNum"]').clear().type(`${placement_groups}`);
2727
this.setApplications(apps);
2828
if (mirroring) {
29-
cy.get('#rbdMirroring').check({ force: true });
29+
cy.get('[data-testid="rbd-mirroring-check"]').check({ force: true });
3030
}
3131
cy.get('cd-submit-button').click();
3232
}
@@ -36,7 +36,7 @@ export class PoolPageHelper extends PageHelper {
3636
this.navigateEdit(name);
3737

3838
if (mirroring) {
39-
cy.get('#rbdMirroring').should('be.checked');
39+
cy.get('[data-testid="rbd-mirroring-check"]').should('be.checked');
4040
}
4141

4242
cy.get('[data-testid="pgNum"]').clear().type(`${new_pg}`);

src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@
203203
<div class="custom-control custom-checkbox">
204204
<input class="custom-control-input"
205205
id="rbdMirroring"
206+
data-testid="rbd-mirroring-check"
206207
type="checkbox"
207208
formControlName="rbdMirroring">
208209
<label class="custom-control-label"

0 commit comments

Comments
 (0)