Skip to content

Commit

Permalink
fix: one frustration based error (PostHog#28218)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra authored Feb 3, 2025
1 parent 890e2dd commit 1e3c4c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress/support/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const E2E_TESTING = Cypress.env('E2E_TESTING')
// From: https://github.com/cypress-io/cypress/issues/300#issuecomment-688915086
Cypress.on('window:before:load', (win) => {
cy.spy(win.console, 'error')
cy.spy(win.console, 'warn')(win as any)._cypress_posthog_captures = []
cy.spy(win.console, 'warn')
;(win as any)._cypress_posthog_captures = []
})

Cypress.on('window:load', (win) => {
Expand Down

0 comments on commit 1e3c4c2

Please sign in to comment.