-
Notifications
You must be signed in to change notification settings - Fork 396
test: [DI-29822] - Add spec for create notification channel #13383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
test: [DI-29822] - Add spec for create notification channel #13383
Conversation
Cloud Manager UI test results🔺 1 failing test on test run #2 ↗︎
Details
TroubleshootingUse this command to re-run the failing tests: pnpm cy:run -s "cypress/e2e/core/account/quotas-storage.spec.ts" |
|||||||||||||||||
| * Verifies server error handling during channel creation. | ||
| */ | ||
| beforeEach(() => { | ||
| mockAppendFeatureFlags(flagsFactory.build()); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) => { |
There was a problem hiding this comment.
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.
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 🔄
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
As an Author, before moving this PR from Draft to Open, I confirmed ✅