1 import { CreateClusterWizardHelper } from 'cypress/integration/cluster/create-cluster.po';
2 import { OSDsPageHelper } from 'cypress/integration/cluster/osds.po';
4 const osds = new OSDsPageHelper();
6 describe('Create cluster create osds page', () => {
7 const createCluster = new CreateClusterWizardHelper();
11 Cypress.Cookies.preserveOnce('token');
12 createCluster.navigateTo();
13 createCluster.createCluster();
14 cy.get('.nav-link').contains('Create OSDs').click();
17 it('should check if title contains Create OSDs', () => {
18 cy.get('.title').should('contain.text', 'Create OSDs');
21 describe('when Orchestrator is available', () => {
22 it('should create OSDs', () => {
23 const hostnames = ['ceph-node-00', 'ceph-node-02', 'ceph-node-03'];
24 for (const hostname of hostnames) {
25 osds.create('hdd', hostname, true);
27 // Go to the Review section and Expand the cluster
28 // because the drive group spec is only stored
29 // in frontend and will be lost when refreshed
30 cy.get('.nav-link').contains('Review').click();
31 cy.get('button[aria-label="Next"]').click();
32 cy.get('cd-dashboard').should('exist');
33 createCluster.navigateTo();
34 createCluster.createCluster();
35 cy.get('.nav-link').contains('Create OSDs').click();