]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/mgr-modules.po.ts
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / integration / cluster / mgr-modules.po.ts
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
deleted file mode 100644 (file)
index 04d2eee..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-import { PageHelper } from '../page-helper.po';
-
-export class Input {
-  id: string;
-  oldValue: string;
-  newValue: string;
-}
-
-export class ManagerModulesPageHelper extends PageHelper {
-  pages = { index: { url: '#/mgr-modules', id: 'cd-mgr-module-list' } };
-
-  /**
-   * Selects the Manager Module and then fills in the desired fields.
-   */
-  editMgrModule(name: string, inputs: Input[]) {
-    this.navigateEdit(name);
-
-    for (const input of inputs) {
-      // Clears fields and adds edits
-      cy.get(`#${input.id}`).clear().type(input.newValue);
-    }
-
-    cy.contains('button', 'Update').click();
-    // Checks if edits appear
-    this.getExpandCollapseElement(name).should('be.visible').click();
-
-    for (const input of inputs) {
-      cy.get('.datatable-body').last().contains(input.newValue);
-    }
-
-    // Clear mgr module of all edits made to it
-    this.navigateEdit(name);
-
-    // Clears the editable fields
-    for (const input of inputs) {
-      if (input.oldValue) {
-        const id = `#${input.id}`;
-        cy.get(id).clear();
-        if (input.oldValue) {
-          cy.get(id).type(input.oldValue);
-        }
-      }
-    }
-
-    // Checks that clearing represents in details tab of module
-    cy.contains('button', 'Update').click();
-    this.getExpandCollapseElement(name).should('be.visible').click();
-    for (const input of inputs) {
-      if (input.oldValue) {
-        cy.get('.datatable-body')
-          .eq(1)
-          .should('contain', input.id)
-          .and('not.contain', input.newValue);
-      }
-    }
-  }
-}