3 CreateClusterServicePageHelper,
4 CreateClusterWizardHelper
5 } from '../../cluster/create-cluster.po';
8 describe('Create cluster create services page', () => {
9 const createCluster = new CreateClusterWizardHelper();
10 const createClusterServicePage = new CreateClusterServicePageHelper();
12 const createService = (serviceType: string, serviceName: string, count = '1') => {
13 cy.get('[aria-label=Create]').first().click();
14 createClusterServicePage.addService(serviceType, false, count);
15 createClusterServicePage.checkExist(serviceName, true);
20 Cypress.Cookies.preserveOnce('token');
21 createCluster.navigateTo();
22 createCluster.createCluster();
23 cy.get('.nav-link').contains('Create Services').click();
26 it('should check if title contains Create Services', () => {
27 cy.get('.title').should('contain.text', 'Create Services');
30 describe('when Orchestrator is available', () => {
31 const serviceName = 'mds.test';
33 it('should create an mds service', () => {
34 createService('mds', serviceName, '1');
37 it('should edit a service', () => {
38 const daemonCount = '2';
39 createClusterServicePage.editService(serviceName, daemonCount);
40 createClusterServicePage.expectPlacementCount(serviceName, daemonCount);
43 it('should delete mds service', () => {
44 createClusterServicePage.deleteService('mds.test');