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', () => {
24 osds.getTableCount('total').as('initOSDCount');
26 createCluster.navigateTo();
27 createCluster.createCluster();
28 cy.get('.nav-link').contains('Create OSDs').click();
30 createCluster.createOSD('hdd');
32 // Go to the Review section and Expand the cluster
33 // because the drive group spec is only stored
34 // in frontend and will be lost when refreshed
35 cy.get('.nav-link').contains('Review').click();
36 cy.get('button[aria-label="Next"]').click();
37 cy.get('cd-dashboard').should('exist');