-
Notifications
You must be signed in to change notification settings - Fork 367
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
test: [M3-6750] - VPC Delete tests #9920
Conversation
React.useEffect(() => { | ||
if (open) { | ||
reset(); | ||
} | ||
}, [open, reset]); |
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.
On the VPC details page we disable subnet's delete
action if the subnet still has linodes assigned to it -- the persistent error state is likely less of an issue here than the VPC delete dialog. Still added the fix to this dialog just in case some other error does appear bc we wouldn't want that to show up for some other subnet's delete dialog
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.
Error message no longer persists for VPC delete dialog ✅
Unit test passes ✅
E2E test passes ✅
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.
Looks great! Thanks @coliu-akamai
cy.wait(['@deleteVPCError']); | ||
cy.findByText(MOCK_DELETE_VPC_ERROR).should('be.visible'); | ||
|
||
// close Delete dialog for this VPC and open it up for the second VPC to confirm that error message does not persist |
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 is a nice extra detail to cover, good thinking!
Description 📝
Preview 📷
Bug fix:
Screen.Recording.2023-11-20.at.11.22.20.AM.mov
bugfixed.mov
How to test 🧪
Prerequisites
For testing the bug
(How to setup test environment)
Reproduction steps
(How to reproduce the issue, if applicable)
Verification steps
(How to verify changes)
yarn test VPCDeleteDialog
yarn cy:run -s "cypress/e2e/core/vpc/vpc-landing-page.spec.ts"
As an Author I have considered 🤔
Check all that apply