Skip to content

Conversation

@shnagend-akamai
Copy link
Contributor

@shnagend-akamai shnagend-akamai commented Feb 9, 2026

Description 📝

This PR adds a new test specification (spec) relating to creating a notification channel in the Linode Manager application. It is basically work done as part of DI-29084, which is a ticket related to the notification channel feature.

Changes 🔄

  • Adds a test spec file to cover the "create notification channel" functionality.
  • This may include UI test scripts (e.g., using Cypress or a similar tool) to automate the workflow of creating a notification channel via the application interface.
  • The new specs likely ensure that notifications channels can be created successfully, and that UI and backend behaviors are as expected.

Target release date 🗓️

24th Feb

Preview 📷

Include a screenshot <img src="" /> or video <video src="" /> of the change.

alert-notification-channel-create.spec.ts.mp4

How to test 🧪

pnpm cy:run -s "cypress/e2e/core/cloudpulse/alert-notification-channel-create.spec.ts"

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

@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🔺 1 failing test on test run #2 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
1 Failing867 Passing11 Skipped37m 45s

Details

Failing Tests
SpecTest
quotas-storage.spec.tsCloud Manager Cypress Tests→Quota workflow tests→Quota storage table » Quotas and quota usages display properly

Troubleshooting

Use this command to re-run the failing tests:

pnpm cy:run -s "cypress/e2e/core/account/quotas-storage.spec.ts"

@santoshp210-akamai santoshp210-akamai added e2e Indicates that a PR touches Cypress tests in some way Cloud Pulse Cloud Pulse - Alerting labels Feb 10, 2026
@shnagend-akamai shnagend-akamai marked this pull request as ready for review February 10, 2026 13:53
@shnagend-akamai shnagend-akamai requested a review from a team as a code owner February 10, 2026 13:53
* Verifies server error handling during channel creation.
*/
beforeEach(() => {
mockAppendFeatureFlags(flagsFactory.build());
Copy link
Contributor

Choose a reason for hiding this comment

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

why do you need mock the feature flags here? the tests pass w/out this statement

Copy link
Contributor

@jdamore-linode jdamore-linode Feb 10, 2026

Choose a reason for hiding this comment

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

More specifically, @shnagend-akamai if you need to mock any feature flags, mock just the feature flags that you need for the test. This creates maintenance overhead where any change to the flag factory risks breaking these tests.

Edit: apologies, CC'd Ankita by mistake!

.click();

// Validate API request payload for notification channel creation
cy.wait('@createAlertChannelNew').then((interception) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

this block of code doesn't test anything in the UI, it's just testing the test code which mocks the response. the test below where you filter for the label to ensure that the new item is visible is sufficient and does this better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Cloud Pulse - Alerting Cloud Pulse e2e Indicates that a PR touches Cypress tests in some way

Projects

Status: Review

Development

Successfully merging this pull request may close these issues.

5 participants