Skip to content

test: Fix create-linode-with-add-ons.spec.ts after Linode Interfaces GA#13325

Merged
bnussman-akamai merged 3 commits into
linode:developfrom
bnussman-akamai:fix/linode-create-addons-test-after-linode-interfaces-ga
Jan 27, 2026
Merged

test: Fix create-linode-with-add-ons.spec.ts after Linode Interfaces GA#13325
bnussman-akamai merged 3 commits into
linode:developfrom
bnussman-akamai:fix/linode-create-addons-test-after-linode-interfaces-ga

Conversation

@bnussman-akamai
Copy link
Copy Markdown
Member

Description 📝

  • Fixes test failure in create-linode-with-add-ons.spec.ts after Linode Interfaces went GA
    • Linode Interfaces is now enabled for all accounts, causing the Private IP addon to be hidden, causing this test to fail.
    • The fix is to manually select legacy config interfaces

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

Preview 📷

Before After
Screenshot 2026-01-26 at 12 37 35 PM Screenshot 2026-01-26 at 12 35 29 PM

How to test 🧪

  • Verify create-linode-with-add-ons.spec.ts passes in CI
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

@bnussman-akamai bnussman-akamai self-assigned this Jan 26, 2026
@bnussman-akamai bnussman-akamai requested a review from a team as a code owner January 26, 2026 17:39
@bnussman-akamai bnussman-akamai requested a review from a team as a code owner January 26, 2026 17:39
@bnussman-akamai bnussman-akamai requested review from dmcintyr-akamai and removed request for a team January 26, 2026 17:39
Comment on lines -30 to -33
// Clean up private IP value when the option is hidden
if (!shouldShowPrivateIP) {
setValue('private_ip', false);
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Rather then setting state during render, I moved this to the onChange handler that handles when the user changes the interface generation.

On the Linode create flow, we prefer to set state eagerly in onChange handlers rather than setting state as side affects in other components

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! Double checked and confirmed that the private IP checkbox still works as expected 👍

Copy link
Copy Markdown
Contributor

@jdamore-linode jdamore-linode left a comment

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

@github-project-automation github-project-automation Bot moved this from Review to Approved in Cloud Manager Jan 27, 2026
@linode-gh-bot
Copy link
Copy Markdown

Cloud Manager UI test results

🔺 3 failing tests on test run #3 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
3 Failing862 Passing11 Skipped47m 54s

Details

Failing Tests
SpecTest
resize-linode.spec.tsCloud Manager Cypress Tests→resize linode » resizes a linode by increasing size: warm migration
clone-linode.spec.tsCloud Manager Cypress Tests→clone linode » can clone a Linode from Linode details page
switch-linode-state.spec.tsCloud Manager Cypress Tests→switch linode state » powers on a linode from details page

Troubleshooting

Use this command to re-run the failing tests:

pnpm cy:run -s "cypress/e2e/core/linodes/resize-linode.spec.ts,cypress/e2e/core/linodes/clone-linode.spec.ts,cypress/e2e/core/linodes/switch-linode-state.spec.ts"

@bnussman-akamai bnussman-akamai merged commit 1a21783 into linode:develop Jan 27, 2026
34 of 35 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Merged in Cloud Manager Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants