Skip to content

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

Merged
davidgamez merged 2 commits intomasterfrom
fix/cypress-integration-tests
Nov 27, 2023
Merged

fix: cypress error scenario on downloading rules definitions file#1617
davidgamez merged 2 commits intomasterfrom
fix/cypress-integration-tests

Conversation

@davidgamez
Copy link
Copy Markdown
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!

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
Copy Markdown
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
Copy Markdown
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
@davidgamez davidgamez requested a review from emmambd November 27, 2023 20:42
Copy link
Copy Markdown
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
@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.

2 participants