|
1 | 1 | import ClusterManagerListPagePo from '@/cypress/e2e/po/pages/cluster-manager/cluster-manager-list.po'; |
2 | 2 | import HomePagePo from '@/cypress/e2e/po/pages/home.po'; |
| 3 | +import { qase } from '@/cypress/support/qase'; |
3 | 4 |
|
4 | 5 | import { mockCapiMgmtCluster, mockCapiProvCluster } from '@/cypress/e2e/blueprints/manager/v2prov-capi-cluster-mocks'; |
5 | 6 |
|
@@ -30,13 +31,21 @@ describe('Cluster List - v2 Provisioning CAPI Clusters', { tags: ['@manager', '@ |
30 | 31 | clusterList.waitForPage(); |
31 | 32 | }); |
32 | 33 |
|
33 | | - it('should not allow editing CAPI cluster configs', () => { |
34 | | - clusterList.list().actionMenu(clusterName).getMenuItem('Edit Config').should('not.exist'); |
| 34 | + qase(18526, it('should not allow editing CAPI cluster configs', () => { |
| 35 | + const capiActionMenu = clusterList.list().actionMenu(clusterName); |
| 36 | + |
| 37 | + capiActionMenu.getMenuItem('Edit Config').should('not.exist'); |
| 38 | + |
| 39 | + // Close the first row action menu so its overlay does not block subsequent row actions. |
| 40 | + clusterList.list().actionMenuClose(clusterName); |
| 41 | + cy.get('body').find('[dropdown-menu-collection]:visible').should('have.length', 0); |
| 42 | + |
35 | 43 | clusterList.list().actionMenu('local').getMenuItem('Edit Config').should('exist'); |
36 | | - }); |
| 44 | + })); |
37 | 45 |
|
38 | | - it('should not report a machine provider for CAPI clusters', () => { |
| 46 | + qase(18528, it('should not report a machine provider for CAPI clusters', () => { |
39 | 47 | clusterList.list().provider(clusterName).should('have.text', ' RKE2'); |
40 | | - clusterList.list().provider('local').should('have.text', 'Local K3s'); |
41 | | - }); |
| 48 | + |
| 49 | + clusterList.list().provider('local').invoke('text').should('match', /^Local (K3s|RKE2)$/); |
| 50 | + })); |
42 | 51 | }); |
0 commit comments