-
Notifications
You must be signed in to change notification settings - Fork 35
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
Major version update of cypress to 6.0.0 #5388
Conversation
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.
just a few comments comments we could clean up but LGTM!
🚢
@@ -190,6 +190,7 @@ function serviceMemberAddsWeightTicketSetWithMissingDocuments(hasAnother = false | |||
cy.get('input[name="full_weight"]').type('5000'); | |||
cy.upload_file('[data-testid=full-weight-upload] .filepond--root', 'top-secret.png'); | |||
// cy.wait('@postUploadDocument').its('response.statusCode').should('eq', 201); |
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.
remove the commented out wait and other commented out lines in this file?
and I assume we were failing because there was a timing issue w/ the upload?
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 was leaving these in because we should be able to uncomment them once Cypress fixes the bug (cypress-io/cypress#9359)
@@ -302,12 +303,12 @@ function serviceMemberSubmitsWeightTicket(vehicleType, hasAnother = true, ordina | |||
cy.get('input[name="empty_weight"]').type('1000'); | |||
|
|||
cy.upload_file('[data-testid=empty-weight-upload] .filepond--root', 'top-secret.png'); | |||
cy.wait('@postUploadDocument'); | |||
// cy.wait('@postUploadDocument').its('response.statusCode').should('eq', 201); |
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.
delete these and other similar comments in this file?
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.
@lynzt looked at my changes and gave a ✅ (was unable to do the review herself since she opened the initial PR)
Description
This PR updates cypress to
^6.0.0
and makes changes according to the Migration Guide:should('not.be.visible')
to assert an element that doesn't exist were updated to useshould('not.exist')
insteadcy.intercept
instead ofcy.route
and removed the fetch deletion command since window.fetch is now supported/internal/uploads
which were causing server errors, most likely because of this open bug:cy.intercept
on file upload endpoints seems to be reading the file stream, which can result in server-side throwing error cypress-io/cypress#9534Reviewer Notes
If the Cypress tests pass in CI then this PR should be good to go!
Code Review Verification Steps
Querying the Database Safely
have been satisfied.
References