1 import { PageHelper } from '../page-helper.po';
2 import { NotificationSidebarPageHelper } from '../ui/notification.po';
3 import { HostsPageHelper } from './hosts.po';
4 import { ServicesPageHelper } from './services.po';
7 index: { url: '#/expand-cluster', id: 'cd-create-cluster' }
9 export class CreateClusterWizardHelper extends PageHelper {
13 cy.get('cd-create-cluster').should('contain.text', 'Please expand your cluster first');
14 cy.get('[name=expand-cluster]').click();
15 cy.get('cd-wizard').should('exist');
19 cy.get('[name=skip-cluster-creation]').click();
20 cy.contains('cd-modal button', 'Continue').click();
22 cy.get('cd-dashboard').should('exist');
23 const notification = new NotificationSidebarPageHelper();
25 notification.getNotifications().should('contain', 'Cluster expansion skipped by user');
29 export class CreateClusterHostPageHelper extends HostsPageHelper {
31 index: { url: '#/expand-cluster', id: 'cd-wizard' },
32 add: { url: '', id: 'cd-host-form' }
43 export class CreateClusterServicePageHelper extends ServicesPageHelper {
45 index: { url: '#/expand-cluster', id: 'cd-wizard' },
46 create: { url: '', id: 'cd-service-form' }