-
Notifications
You must be signed in to change notification settings - Fork 131
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
chore: remove cypress log noise #1086
Conversation
@@ -287,7 +287,7 @@ describe('Event capture', () => { | |||
|
|||
// the code below is going to trigger an event capture | |||
// we want to assert on the request | |||
cy.intercept('POST', '**/e/*', async (request) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as far as I could tell from testing
**/blah
matches something/blah
but not /blah
so wasn't matching all requests the tests were making
cy.intercept('POST', '/e/*', { status: 1 }).as('capture') | ||
cy.intercept('POST', '/ses/*', { status: 1 }).as('session-recording') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
json response so that rate limiter doesn't log an error
cy.readFile('dist/array.full.js.map').then((body) => { | ||
cy.intercept('/static/array.full.js.map', { body }) | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
map file intercepts so we're serving the correct file when the browser requests it and not complaining in the logs
Size Change: 0 B Total Size: 941 kB ℹ️ View Unchanged
|
lifting these changes out of #1083
it was really hard to debug failing cypress tests because we had lots of log warnings and errors around our request interceptors missing requests or not returning expected responses...
well, not any more