1 import { CreateClusterWizardHelper } from 'cypress/integration/cluster/create-cluster.po';
2 import { HostsPageHelper } from 'cypress/integration/cluster/hosts.po';
3 import { OSDsPageHelper } from 'cypress/integration/cluster/osds.po';
4 import { ServicesPageHelper } from 'cypress/integration/cluster/services.po';
6 describe('when cluster creation is completed', () => {
7 const createCluster = new CreateClusterWizardHelper();
11 Cypress.Cookies.preserveOnce('token');
14 it('should redirect to dashboard landing page after cluster creation', () => {
15 createCluster.navigateTo();
16 createCluster.createCluster();
18 cy.get('button[aria-label="Next"]').click();
19 cy.get('button[aria-label="Next"]').click();
20 cy.get('button[aria-label="Next"]').click();
21 cy.get('button[aria-label="Next"]').click();
23 cy.get('cd-dashboard').should('exist');
26 describe('Hosts page', () => {
27 const hosts = new HostsPageHelper();
28 const hostnames = ['ceph-node-00.cephlab.com', 'ceph-node-02.cephlab.com'];
33 it('should have removed "_no_schedule" label', () => {
34 for (let host = 0; host < hostnames.length; host++) {
35 cy.get('datatable-row-wrapper').should('not.have.text', '_no_schedule');
39 it('should display inventory', () => {
40 hosts.clickHostTab(hostnames[1], 'Physical Disks');
41 cy.get('cd-host-details').within(() => {
42 hosts.getTableCount('total').should('be.gte', 0);
46 it('should display daemons', () => {
47 hosts.clickHostTab(hostnames[1], 'Daemons');
48 cy.get('cd-host-details').within(() => {
49 hosts.getTableCount('total').should('be.gte', 0);
54 describe('OSDs page', () => {
55 const osds = new OSDsPageHelper();
61 it('should check if osds are created', { retries: 1 }, () => {
62 osds.expectTableCount('total', 2);
66 describe('Services page', () => {
67 const services = new ServicesPageHelper();
70 services.navigateTo();
73 it('should check if services are created', () => {
74 services.checkExist('rgw.rgw', true);