X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fcypress%2Fintegration%2Fcluster%2Fmgr-modules.po.ts;fp=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fcypress%2Fintegration%2Fcluster%2Fmgr-modules.po.ts;h=04d2eee46142f4b4e857a154d87ddb450bed5d52;hb=2a845540123ad00df2e55947b8080306ebdcf410;hp=8faaff09afae5df1eb91c6e528254bf114c6a98b;hpb=0948533fc3b372aaa92e1cd3da22f2258220e199;p=ceph.git diff --git a/ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/mgr-modules.po.ts b/ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/mgr-modules.po.ts index 8faaff09a..04d2eee46 100644 --- a/ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/mgr-modules.po.ts +++ b/ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/mgr-modules.po.ts @@ -33,10 +33,12 @@ export class ManagerModulesPageHelper extends PageHelper { // Clears the editable fields for (const input of inputs) { - const id = `#${input.id}`; - cy.get(id).clear(); if (input.oldValue) { - cy.get(id).type(input.oldValue); + const id = `#${input.id}`; + cy.get(id).clear(); + if (input.oldValue) { + cy.get(id).type(input.oldValue); + } } } @@ -44,10 +46,12 @@ export class ManagerModulesPageHelper extends PageHelper { cy.contains('button', 'Update').click(); this.getExpandCollapseElement(name).should('be.visible').click(); for (const input of inputs) { - cy.get('.datatable-body') - .eq(1) - .should('contain', input.id) - .and('not.contain', input.newValue); + if (input.oldValue) { + cy.get('.datatable-body') + .eq(1) + .should('contain', input.id) + .and('not.contain', input.newValue); + } } } }