-
Notifications
You must be signed in to change notification settings - Fork 140
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: fix error tests listener registration #1291
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
const decideResponse = { | ||
editorParams: {}, | ||
featureFlags: ['session-recording-player'], | ||
supportedCompression: ['gzip-js'], | ||
excludedDomains: [], | ||
autocaptureExceptions: false, | ||
...decideResponseOverrides, | ||
config: { ...decideResponseOverrides.config }, |
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.
nobody sends this, and DecideResponse
doesn't have a config prop so 🔪
@@ -32,7 +32,7 @@ beforeEach(() => { | |||
|
|||
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-v2.js*', { body }).as('recorderv2') |
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.
we should remove this tbh but fly-by rename so it doesn't clash
@@ -48,7 +48,7 @@ beforeEach(() => { | |||
}) | |||
|
|||
cy.readFile('dist/exception-autocapture.js').then((body) => { | |||
cy.intercept('/static/exception-autocapture.js*', { body }) | |||
cy.intercept('/static/exception-autocapture.js*', { body }).as('exception-autocapture-script') |
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.
better safe than sorry
Size Change: 0 B Total Size: 1.15 MB ℹ️ View Unchanged
|
I can't consistently make this happen locally
But I did once notice that I don't always get
i only noticed after the fact but if we didn't register an event listener then the tests wouldn't pass
i've checked console logs in prod for our team and don't see this so it's safe to patch in tests (🙈)