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

fix: cypress error scenario on downloading rules definitions file #1617

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

davidgamez
Copy link
Member

@davidgamez davidgamez commented Nov 27, 2023

Summary:

Summarize the changes in the pull request, including how it relates to any issues (include the #number, or link them).

Expected behavior:

Cypress integration tests are failing due to changes in the page structure in the latest release. This PR fixes the test, updating it with the latest expected web structure.

  • Updated Cypress expectation to align it with the current rules.html implementation
  • Point Cypress integration tests to QA.

Out of scope:

  • Executes Cypress against a local server

Part of #1616

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Run the unit tests with gradle test to make sure you didn't break anything
  • Format the title like "feat: [new feature short description]". Title must follow the Conventional Commit Specification(https://www.conventionalcommits.org/en/v1.0.0/).
  • Linked all relevant issues
  • Include screenshot(s) showing how this pull request works and fixes the issue(s)

Comment on lines -125 to -127
cy.get('a')
.should('contain.text', 'https://github.com/MobilityData/gtfs-validator/blob/master/RULES.md')
.and('have.attr', 'href', 'https://github.com/MobilityData/gtfs-validator/blob/master/RULES.md');
Copy link
Member Author

Choose a reason for hiding this comment

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

This content was removed from the page

cy.get('a')
.should('contain.text', 'https://github.com/MobilityData/gtfs-validator/blob/master/RULES.md')
.and('have.attr', 'href', 'https://github.com/MobilityData/gtfs-validator/blob/master/RULES.md');
cy.get('p').should('contain.text', 'There was a problem loading the rules file.');
Copy link
Member Author

Choose a reason for hiding this comment

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

Text changed

@davidgamez davidgamez marked this pull request as ready for review November 27, 2023 20:17
Copy link
Contributor

@emmambd emmambd left a comment

Choose a reason for hiding this comment

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

LGTM!

@davidgamez davidgamez merged commit fe69b97 into master Nov 27, 2023
21 checks passed
@davidgamez davidgamez deleted the fix/cypress-integration-tests branch November 27, 2023 20:45
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.

None yet

2 participants