Skip to content

test: [M3-10369] - Add tests to linode alerts edit page on when "Save Changes?" dialog should appear - #12707

Merged
dmcintyr-akamai merged 12 commits into
linode:developfrom
dmcintyr-akamai:M3-10369_saveAlertsPrompt
Aug 18, 2025
Merged

test: [M3-10369] - Add tests to linode alerts edit page on when "Save Changes?" dialog should appear#12707
dmcintyr-akamai merged 12 commits into
linode:developfrom
dmcintyr-akamai:M3-10369_saveAlertsPrompt

Conversation

@dmcintyr-akamai

Copy link
Copy Markdown
Contributor

Description 📝

Add tests to linode alerts edit page (/linodes//alerts) on when "Save Changes?" dialog should appear. @pmakode-akamai documented in https://jira.linode.com/browse/M3-10369 the conditions on when the dialog should and should not appear.
In a region that supports alerts, the user will see the dialog if:

  1. the UI defaults to legacy alerts (based on the 'alerts' attribute of the linode)
  2. the user switches to beta mode
  3. the user makes edits to the beta alerts
  4. saves the changes

The user will NOT see the dialog if:

  1. the UI defaults to beta alerts (based on the 'alerts' attribute of the linode)
  2. the user switches to legacy mode
  3. the user makes edits to the legacy alerts
  4. saves the changes

Changes 🔄

Added tests. Also replaced a string in one of the react components. This string was problematic bc it was padded w/ an extra space at the end, which made test assertions difficult.

How to test 🧪

pnpm run cy:run -s cypress/e2e/core/linodes/alerts-edit.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

@dmcintyr-akamai
dmcintyr-akamai marked this pull request as ready for review August 15, 2025 14:17
@dmcintyr-akamai
dmcintyr-akamai requested review from a team as code owners August 15, 2025 14:17
@dmcintyr-akamai
dmcintyr-akamai requested review from cliu-akamai, coliu-akamai, dwiley-akamai and pmakode-akamai and removed request for a team August 15, 2025 14:17
@linode-gh-bot

Copy link
Copy Markdown

Cloud Manager UI test results

🎉 721 passing tests on test run #8 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing721 Passing4 Skipped119m 39s

@pmakode-akamai pmakode-akamai added ACLP Integration CI (Cloud Interfaces) Support for CC (Core Compute) CloudPulse Integration Testing labels Aug 18, 2025

@pmakode-akamai pmakode-akamai left a comment

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.

All tests pass ✅ thank you!

Comment thread packages/manager/cypress/e2e/core/linodes/alerts-edit.spec.ts

@coliu-akamai coliu-akamai left a comment

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.

✅ confirmed tests pass

thanks @dmcintyr-akamai!

@github-project-automation github-project-automation Bot moved this from Review to Approved in Cloud Manager Aug 18, 2025
@coliu-akamai coliu-akamai added the Approved Multiple approvals and ready to merge! label Aug 18, 2025
@dmcintyr-akamai
dmcintyr-akamai merged commit 3ffc985 into linode:develop Aug 18, 2025
34 of 35 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Merged in Cloud Manager Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ACLP Integration CI (Cloud Interfaces) Support for CC (Core Compute) CloudPulse Integration Approved Multiple approvals and ready to merge! Testing

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants