X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fcypress%2Fintegration%2Forchestrator%2Fworkflow%2F03-create-cluster-create-services.e2e-spec.ts;h=745a2ec5d18fb95f4ae9df7a077b930e45236f0c;hb=39ae355f72b1d71f2212a99f2bd9f6c1e0d35528;hp=e386a170a0488bd00bf429dded3f780bfb76e60b;hpb=20effc670b57271cb089376d6d0800990e5218d5;p=ceph.git diff --git a/ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/03-create-cluster-create-services.e2e-spec.ts b/ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/03-create-cluster-create-services.e2e-spec.ts index e386a170a..745a2ec5d 100644 --- a/ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/03-create-cluster-create-services.e2e-spec.ts +++ b/ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/03-create-cluster-create-services.e2e-spec.ts @@ -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', () => {