Skip to content

Conversation

@jdamore-linode
Copy link
Contributor

@jdamore-linode jdamore-linode commented Sep 16, 2025

Description 📝

This adds a handful of smoke tests that to confirm the state of the LKE cluster create and details pages when the LKE-E "postLa" feature flag is and is not enabled. It additionally adds some tests to confirm the pages work as expected when both "postLa" and "phase2Mtc" are enabled.

The diff is pretty big because I wrapped the existing tests in new describe blocks, but these are the new tests:

  • LKE-E Cluster Create -> Post-LA feature flag -> Simple Page Check - Post LA Flag ON
  • LKE-E Cluster Create -> Post-LA feature flag -> Simple Page Check - Post LA Flag OFF
  • LKE-E Cluster Create -> Phase 2 MTC & Post-LA feature flags -> Simple Page Check - Phase 2 MTC Flag and Post-LA Flag ON
  • LKE-E Cluster Read -> Post-LA feature flags -> Simple Page Check - Post-LA Flag ON
  • LKE-E Cluster Read -> Post-LA feature flags -> Simple Page Check - Post-LA Flag OFF
  • LKE-E Cluster Read -> Phase 2 MTC & Post-LA feature flags -> Simple Page Check - Phase 2 MTC Flag and Post-LA Flag ON

Changes 🔄

  • Add LKE-E "postLa" feature flag smoke tests

Scope 🚢

Upon production release, changes in this PR will be visible to:

  • All customers
  • Some customers (e.g. in Beta or Limited Availability)
  • No customers / Not applicable

Target release date 🗓️

N/A

How to test 🧪

We can rely on CI to confirm that the tests pass as expected. However, you can run the tests locally with this command:

pnpm cy:run -s "cypress/e2e/core/kubernetes/smoke-lke-enterprise.spec.ts"
Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All tests and CI checks are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@jdamore-linode
Copy link
Contributor Author

Just noticed the merge conflict! I'll tackle that tomorrow, but removed the "Ready for Review" label in the meantime

* - Confirms the state of the LKE create page when the LKE-E "postLa" flag is disabled.
* - Confirms that node pools are added directly via the plan table.
*/
it('Simple Page Check - Post LA Flag OFF', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdamore-linode We could leave the "OFF" state test coverage for completeness, but since the postLa flag is enabled in prod now, and we haven't seen any need to retract that, it can be expected to remain on, and I'm not sure that the test is too useful. Do you think this test/any "Post LA OFF" is worth keeping?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mjac0bs I'd prefer to have the off state coverage if it's not too much of a maintenance burden! I think you're right and can't really imagine any scenarios where we'd have to turn the flag off that aren't farfetched, but on the other hand if we could anticipate every edge case scenario we wouldn't really need tests in the first place 😅 I'd really hate to be in a situation where we need to disable a flag on short notice only to find out that the off state is broken

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think all these random CloudPulse changes are a result of Prettier running automatically when committing the merge from develop into this branch; I don't think the CloudPulse team runs Prettier when they commit, so these all got modified to apply our Prettier rules when I made my commit

Copy link
Contributor

@mjac0bs mjac0bs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this and handling the combinatorial explosion of feature flag cases in this file. 😅

I think your merge preserved the existing test cases from my previous PR, and thank you for the additions.

Comment on lines 70 to 71
* - Confirms VPC and IP Stack selections are shown with `phase2Mtc` feature flag is enabled.
* - Confirms VPC and IP Stack selections are not shown in create flow with `phase2Mtc` feature flag is disabled.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor regression from the merge. The deleted text alludes to multiple (nested) phase2 feature flags, rather than just a bool.

Though I think we should move this comment to the section that tests the phase 2 flows.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thanks @mjac0bs! Just improved that wording and moved it to be above the "Phase 2 MTC feature flag" describe block

@mjac0bs mjac0bs added the Add'tl Approval Needed Waiting on another approval! label Sep 18, 2025
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 819 passing tests on test run #5 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing819 Passing11 Skipped44m 52s

@github-project-automation github-project-automation bot moved this from Review to Approved in Cloud Manager Sep 19, 2025
@bnussman-akamai bnussman-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Sep 19, 2025
@jdamore-linode jdamore-linode merged commit 9af32a7 into linode:develop Sep 19, 2025
35 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Merged in Cloud Manager Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved Multiple approvals and ready to merge! LKE-Enterprise

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants