Skip to content

Conversation

@johnmunster
Copy link
Contributor

Description

Feature #4 This PR is for the addition of some code that will stop XHR requests from showing in the Cypress console log when running tests, allowing for a more cleaner looking test run.

Change Log

  • Added some code to the /support/e2e.js file that stops xhr requests showing

Steps to test

Checkout to the branch
run npm run test:e2e to start up the docker container
runnpx cypress opento start up Cypress
Choose End to End testing
Run any test
Notice the test runs without showing XHR showing in the console
Comment out the code that has been added as part of this PR
Run the test again
Notice the XHR requests in the console

Screenshots/Videos

Console log before introduction of code - http://bigbite.im/i/Xgfr3S
Console lof after introduction of code - http://bigbite.im/i/Ui0Pu0

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@johnmunster johnmunster self-assigned this Dec 1, 2023
@johnmunster johnmunster requested a review from g-elwell December 1, 2023 12:40
Copy link
Member

@g-elwell g-elwell left a comment

Choose a reason for hiding this comment

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

works for me

@johnmunster johnmunster merged commit cab7556 into main Dec 5, 2023
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