-
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-6169] - Account cancellation integration tests #9952
test: [M3-6169] - Account cancellation integration tests #9952
Conversation
…l` mock utilities
…s between accordion headings and action buttons
cy.wait('@cancelAccount').then((intercept) => { | ||
expect(intercept.request.body['comments']).to.equal( | ||
cancellationComments | ||
); | ||
}); |
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.
@cliu-akamai, calling this out since you'll probably have to do something similar to confirm the Add User request payload contains the expected data for your M3-7482 ticket.
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.
Code review ✅
account-cancellation.spec.ts
passes locally ✅
export const mockCancelAccountError = ( | ||
errorMessage: string, | ||
status: number = 400 | ||
) => { |
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.
Should a Cypress.Chainable
return type be added for this one as well?
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.
@dwiley-akamai Yep, thanks for catching that!
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.
Coverage Report: ✅ |
Description 📝
This adds Cypress integration tests for various UI flows related to account cancellation via Cloud Manager's Account Settings page. Broadly speaking, these tests confirm that users can cancel their account, are correctly prompted to complete an exit survey, and that Cloud responds gracefully to API errors that occur during the cancellation process.
Changes 🔄
How to test 🧪
We can rely on CI to make sure that the tests pass and that changes made to mock utils and UI helpers do not cause any unintended issues.
To run the test locally, you can run
yarn && yarn build && yarn start:manager:ci
and then run:yarn cy:run -s "cypress/e2e/core/account/account-cancellation.spec.ts"
Alternatively, to run the tests interactively you can use
yarn cy:debug
and search foraccount-cancellation.spec.ts
.As an Author I have considered 🤔
Check all that apply