X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fcypress%2Fintegration%2Fcluster%2Fcreate-cluster.po.ts;fp=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fcypress%2Fintegration%2Fcluster%2Fcreate-cluster.po.ts;h=0000000000000000000000000000000000000000;hb=1e59de90020f1d8d374046ef9cca56ccd4e806e2;hp=300eddbcc3de8c676cd937ac31e7c9a01746e98b;hpb=bd41e436e25044e8e83156060a37c23cb661c364;p=ceph.git diff --git a/ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/create-cluster.po.ts b/ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/create-cluster.po.ts deleted file mode 100644 index 300eddbcc..000000000 --- a/ceph/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/create-cluster.po.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { PageHelper } from '../page-helper.po'; -import { NotificationSidebarPageHelper } from '../ui/notification.po'; -import { HostsPageHelper } from './hosts.po'; -import { ServicesPageHelper } from './services.po'; - -const pages = { - index: { url: '#/expand-cluster', id: 'cd-create-cluster' } -}; -export class CreateClusterWizardHelper extends PageHelper { - pages = pages; - - createCluster() { - cy.get('cd-create-cluster').should('contain.text', 'Please expand your cluster first'); - cy.get('[name=expand-cluster]').click(); - cy.get('cd-wizard').should('exist'); - } - - doSkip() { - cy.get('[name=skip-cluster-creation]').click(); - cy.contains('cd-modal button', 'Continue').click(); - - cy.get('cd-dashboard').should('exist'); - const notification = new NotificationSidebarPageHelper(); - notification.open(); - notification.getNotifications().should('contain', 'Cluster expansion skipped by user'); - } -} - -export class CreateClusterHostPageHelper extends HostsPageHelper { - pages = { - index: { url: '#/expand-cluster', id: 'cd-wizard' }, - add: { url: '', id: 'cd-host-form' } - }; - - columnIndex = { - hostname: 1, - labels: 2, - status: 3, - services: 0 - }; -} - -export class CreateClusterServicePageHelper extends ServicesPageHelper { - pages = { - index: { url: '#/expand-cluster', id: 'cd-wizard' }, - create: { url: '', id: 'cd-service-form' } - }; - - columnIndex = { - service_name: 1, - placement: 2, - running: 0, - size: 0, - last_refresh: 0 - }; -}