-
Notifications
You must be signed in to change notification settings - Fork 379
test: [M3-9595] - Firewall create page for restricted users #12237
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: [M3-9595] - Firewall create page for restricted users #12237
Conversation
Cloud Manager UI test results🎉 595 passing tests on test run #2 ↗︎
|
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.
thanks @dmcintyr-akamai! approving pending Linode Interfaces banner issue is addressed
ui.buttonGroup | ||
.findButtonByTitle('Create Firewall') | ||
.should('be.visible') | ||
.should('be.disabled'); |
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.
I'm seeing that when Linode interfaces is enabled, the button group may be hidden depending on screensize, making the test fail:
We could either
- add scrollIntoView() -
ui.buttonGroup.findButtonByTitle('Create Firewall').scrollIntoView()
- mock the Linode interfaces feature flag to be false (to hide the info banner)
/* | ||
* - Verifies that restricted user cannot create firewall on landing page | ||
*/ | ||
it('create firewall is disabled on landing page', () => { |
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.
it('create firewall is disabled on landing page', () => { | |
it('confirms the create button is disabled on the FirewallLanding page', () => { |
/* | ||
* - Verifies that restricted user cannot create firewall in drawer | ||
*/ | ||
it('create firewall drawer is disabled', () => { |
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.
it('create firewall drawer is disabled', () => { | |
it('confirms the Create Firewall drawer is disabled', () => { |
Description 📝
Add test for firewall create page for restricted users on packages/manager/cypress/e2e/core/firewalls/create-firewall.spec.ts.
Changes 🔄
Verify that 'Create Firewall' button is disabled on landing page (/firewalls) and drawer (/firewalls/create). Inputs within drawer should all be disabled as well.
How to test 🧪
pnpm run cy:run -s cypress/e2e/core/firewalls/create-firewall.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
As an Author, before moving this PR from Draft to Open, I confirmed ✅