]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/03-create-cluster-create-services.e2e-spec.ts
import ceph quincy 17.2.6
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / cypress / integration / orchestrator / workflow / 03-create-cluster-create-services.e2e-spec.ts
index e386a170a0488bd00bf429dded3f780bfb76e60b..745a2ec5d18fb95f4ae9df7a077b930e45236f0c 100644 (file)
@@ -1,14 +1,16 @@
+/* tslint:disable*/
 import {
   CreateClusterServicePageHelper,
   CreateClusterWizardHelper
-} from 'cypress/integration/cluster/create-cluster.po';
+} from '../../cluster/create-cluster.po';
+/* tslint:enable*/
 
 describe('Create cluster create services page', () => {
   const createCluster = new CreateClusterWizardHelper();
   const createClusterServicePage = new CreateClusterServicePageHelper();
 
-  const createService = (serviceType: string, serviceName: string, count = '1') => {
-    cy.get('button[data-testid=table-action-button]').click();
+  const createService = (serviceType: string, serviceName: string, count = 1) => {
+    cy.get('[aria-label=Create]').first().click();
     createClusterServicePage.addService(serviceType, false, count);
     createClusterServicePage.checkExist(serviceName, true);
   };
@@ -29,7 +31,7 @@ describe('Create cluster create services page', () => {
     const serviceName = 'mds.test';
 
     it('should create an mds service', () => {
-      createService('mds', serviceName, '1');
+      createService('mds', serviceName);
     });
 
     it('should edit a service', () => {