fix: [M3-7916] - Typo with toast success notification for updating Reverse DNS#10895
fix: [M3-7916] - Typo with toast success notification for updating Reverse DNS#10895coliu-akamai merged 12 commits intolinode:developfrom
Conversation
| const onExited = () => { | ||
| formik.resetForm(); | ||
| reset(); | ||
| }; |
| cy.findByText('Save') | ||
| .should('be.visible') | ||
| .should('be.enabled') | ||
| .click(); |
There was a problem hiding this comment.
note - this test doesn't technically edit the RDNS, just clicks save to trigger and check the toast (I'm not too familiar with/sure how to edit the RDNS - would get an error each time)
There was a problem hiding this comment.
That's actually useful context if we ever need to look back at this test after some time has passed. Maybe you can expand on that // click Save button comment to explain that we're only trying to trigger the toast and are intentionally not making any change to the form?
|
Coverage Report: ✅ |
bnussman-akamai
left a comment
There was a problem hiding this comment.
Looks good! Lots of nice clean up and testing 🧼 🧪
packages/manager/cypress/e2e/core/linodes/linode-network.spec.ts
Outdated
Show resolved
Hide resolved
jdamore-linode
left a comment
There was a problem hiding this comment.
Nice work @coliu-akamai, thanks! The new test looks great!
| /** | ||
| * Intercepts POST request to get a Linode Resize. |
There was a problem hiding this comment.
Nice catch, thanks for the fix! 😅
packages/manager/cypress/e2e/core/linodes/linode-network.spec.ts
Outdated
Show resolved
Hide resolved
packages/manager/cypress/e2e/core/linodes/linode-network.spec.ts
Outdated
Show resolved
Hide resolved
| cy.findByText('Save') | ||
| .should('be.visible') | ||
| .should('be.enabled') | ||
| .click(); |
There was a problem hiding this comment.
That's actually useful context if we ever need to look back at this test after some time has passed. Maybe you can expand on that // click Save button comment to explain that we're only trying to trigger the toast and are intentionally not making any change to the form?
packages/manager/cypress/e2e/core/linodes/linode-network.spec.ts
Outdated
Show resolved
Hide resolved
|
ty for the feedback!! Just pushed up changes to use mocks + add context and cleanup |
hkhalil-akamai
left a comment
There was a problem hiding this comment.
Great catch 👀 and thanks for adding unit and cypress tests!
| loading: isPending, | ||
| type: 'submit', | ||
| }} | ||
| secondaryButtonProps={{ label: 'cancel', onClick: onClose }} |
packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/EditIPRDNSDrawer.tsx
Show resolved
Hide resolved
cpathipa
left a comment
There was a problem hiding this comment.
Nice work! confirming on the RDNS drawers functionality and tests.
jdamore-linode
left a comment
There was a problem hiding this comment.
Nice work @coliu-akamai! The new test is really solid -- I ran it on repeat 15 times and it passed each time. Thanks again!
packages/manager/cypress/e2e/core/linodes/linode-network.spec.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: jdamore-linode <97627410+jdamore-linode@users.noreply.github.com>
Description 📝
Changes 🔄
Target release date 🗓️
n/a
Preview 📷
How to test 🧪
Verification steps
As an Author I have considered 🤔
Check all that apply