Skip to content

Conversation

@FuhuXia
Copy link
Member

@FuhuXia FuhuXia commented Jan 28, 2025

Get cypress upgraded to recent version and fix tests, preparing for GSA/data.gov#4861

  • first commit takes changes from the cypress auto upgrade from version 7.3.0 to 12.*
  • second commit fixes broken tests
  • add retries to crypress run command so that it is more robust when run PR checks
  • use ckan token for api calls
  • remove module googleanalyticsbasic that is not being used

@FuhuXia FuhuXia marked this pull request as ready for review January 28, 2025 19:56
@FuhuXia FuhuXia requested a review from a team January 28, 2025 19:56

afterEach(() => {
after(() => {
cy.logout();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you want logout afterEach?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should, but since we have cy.login() in beforeEach, and it does a cy.logout() implicitly, so no need to add the extra code.
If we ever remove cy.login() from beforeEach, i would come back and add cy.logout() into afterEach.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does a cy.logout() implicitly

aha. yeah that makes sense.

@FuhuXia FuhuXia merged commit 7e4f46f into main Jan 30, 2025
6 checks passed
@FuhuXia FuhuXia deleted the cypress-upgrade branch January 30, 2025 17:12
FuhuXia added a commit that referenced this pull request Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants