-
Notifications
You must be signed in to change notification settings - Fork 135
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,25 +9,41 @@ Cypress.on('window:before:load', (win) => { | |
}) | ||
|
||
beforeEach(() => { | ||
cy.intercept('POST', '**/decide/*').as('decide') | ||
cy.intercept('POST', '**/e/*').as('capture') | ||
cy.intercept('POST', '**/ses/*').as('session-recording') | ||
cy.intercept('GET', '**/surveys/*').as('surveys') | ||
cy.intercept('POST', '/decide/*').as('decide') | ||
cy.intercept('POST', '/e/*', { status: 1 }).as('capture') | ||
cy.intercept('POST', '/ses/*', { status: 1 }).as('session-recording') | ||
Comment on lines
+13
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. json response so that rate limiter doesn't log an error |
||
cy.intercept('GET', '/surveys/*').as('surveys') | ||
|
||
cy.readFile('dist/array.full.js').then((body) => { | ||
cy.intercept('**/static/array.full.js', { body }) | ||
cy.intercept('/static/array.full.js', { body }) | ||
}) | ||
|
||
cy.readFile('dist/array.js').then((body) => { | ||
cy.intercept('**/static/array.js', { body }) | ||
cy.intercept('/static/array.js', { body }) | ||
}) | ||
|
||
cy.readFile('dist/array.full.js.map').then((body) => { | ||
cy.intercept('/static/array.full.js.map', { body }) | ||
}) | ||
Comment on lines
+25
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
|
||
cy.readFile('dist/array.js.map').then((body) => { | ||
cy.intercept('/static/array.js.map', { body }) | ||
}) | ||
|
||
cy.readFile('dist/recorder.js').then((body) => { | ||
cy.intercept('**/static/recorder.js*', { body }).as('recorder') | ||
cy.intercept('**/static/recorder-v2.js*', { body }).as('recorder') | ||
cy.intercept('/static/recorder.js*', { body }).as('recorder') | ||
cy.intercept('/static/recorder-v2.js*', { body }).as('recorder') | ||
}) | ||
|
||
cy.readFile('dist/recorder.js.map').then((body) => { | ||
cy.intercept('/static/recorder.js.map', { body }) | ||
}) | ||
|
||
cy.readFile('dist/surveys.js').then((body) => { | ||
cy.intercept('**/static/surveys.js*', { body }) | ||
cy.intercept('/static/surveys.js*', { body }) | ||
}) | ||
|
||
cy.readFile('dist/surveys.js.map').then((body) => { | ||
cy.intercept('/static/surveys.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.
as far as I could tell from testing
**/blah
matchessomething/blah
but not/blah
so wasn't matching all requests the tests were making