Skip to content

Commit d0083e8

Browse files
test: [UIE-10554] - Fix LKE create test following APL launch (#13526)
* Fix LKE create test following APL feature flag flip * Added changeset: Fix test failures in lke-create.spec.ts following feature flag change
1 parent 1c93873 commit d0083e8

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Tests
3+
---
4+
5+
Fix test failures in lke-create.spec.ts following feature flag change ([#13526](https://github.com/linode/manager/pull/13526))

packages/manager/cypress/e2e/core/kubernetes/lke-create.spec.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ describe('LKE Cluster Creation with LKE-E', () => {
12961296
* - Confirms that HA is enabled by default with LKE-E selection
12971297
* - Confirms an LKE-E supported region can be selected
12981298
* - Confirms an LKE-E supported k8 version can be selected
1299-
* - Confirms the APL section is disabled while it remains unsupported
1299+
* - Confirms that the APL section is present and enabled
13001300
* - Confirms the VPC & Firewall placeholder section displays with correct copy
13011301
* - Confirms ACL is enabled by default
13021302
* - Confirms the checkout bar displays the correct LKE-E info
@@ -1448,15 +1448,14 @@ describe('LKE Cluster Creation with LKE-E', () => {
14481448
.should('be.enabled')
14491449
.click();
14501450

1451-
// Confirm the APL section is disabled and unsupported.
1451+
// Confirm that APL selection is enabled and no option is selected by default.
14521452
cy.findByTestId('apl-label').should('be.visible');
1453-
cy.findByTestId('apl-coming-soon-chip').should(
1454-
'have.text',
1455-
'coming soon'
1456-
);
1457-
cy.findByTestId('apl-radio-button-yes').should('be.disabled');
1453+
cy.findByTestId('apl-radio-button-yes').within(() => {
1454+
cy.findByRole('radio').should('be.enabled').should('not.be.checked');
1455+
});
14581456
cy.findByTestId('apl-radio-button-no').within(() => {
1459-
cy.findByRole('radio').should('be.disabled').should('be.checked');
1457+
cy.findByRole('radio').should('be.enabled').should('not.be.checked');
1458+
cy.findByRole('radio').check();
14601459
});
14611460

14621461
// Confirm the VPC/Firewall section displays.
@@ -1866,10 +1865,10 @@ describe('LKE cluster creation with LKE-E Post-LA', () => {
18661865

18671866
/*
18681867
* Each test provided w/ array of 12 mock linode types. Type excluded if:
1869-
- flag enabled and id includes 'blackwell'
1870-
- enterprise tier and id includes 'gpu'
1868+
* - flag enabled and id includes 'blackwell'
1869+
* - enterprise tier and id includes 'gpu'
18711870
* If visible in table, rows are always enabled
1872-
*/
1871+
*/
18731872
describe('smoketest for Nvidia Blackwell GPUs in kubernetes/create page', () => {
18741873
const mockRegion = regionFactory.build({
18751874
id: 'us-east',

0 commit comments

Comments
 (0)