Skip to content
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

Cypress upgrade #803

Merged
merged 6 commits into from
Jan 30, 2025
Merged

Cypress upgrade #803

merged 6 commits into from
Jan 30, 2025

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
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.

2 participants