]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/03-create-cluster-create-osds.e2e-spec.ts
buildsys: switch source download to quincy
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / integration / orchestrator / workflow / 03-create-cluster-create-osds.e2e-spec.ts
1 import { CreateClusterWizardHelper } from 'cypress/integration/cluster/create-cluster.po';
2 import { OSDsPageHelper } from 'cypress/integration/cluster/osds.po';
3
4 const osds = new OSDsPageHelper();
5
6 describe('Create cluster create osds page', () => {
7 const createCluster = new CreateClusterWizardHelper();
8
9 beforeEach(() => {
10 cy.login();
11 Cypress.Cookies.preserveOnce('token');
12 createCluster.navigateTo();
13 createCluster.createCluster();
14 cy.get('.nav-link').contains('Create OSDs').click();
15 });
16
17 it('should check if title contains Create OSDs', () => {
18 cy.get('.title').should('contain.text', 'Create OSDs');
19 });
20
21 describe('when Orchestrator is available', () => {
22 it('should create OSDs', () => {
23 osds.navigateTo();
24 osds.getTableCount('total').as('initOSDCount');
25
26 createCluster.navigateTo();
27 createCluster.createCluster();
28 cy.get('.nav-link').contains('Create OSDs').click();
29
30 createCluster.createOSD('hdd');
31
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');
38 });
39 });
40 });