Skip to content

Commit

Permalink
undo attempt at intercepting posthog.capture in cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
Bianca Yang committed Nov 15, 2023
1 parent eb3ab82 commit d72d35d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cypress/e2e/billingv2.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ describe('Billing', () => {
cy.intercept('/api/billing-v2/deactivate?products=product_analytics', {
fixture: 'api/billing-v2/billing-v2-unsubscribed-product-analytics.json',
}).as('unsubscribeProductAnalytics')
cy.intercept('POST', '/e/?compression=gzip-js').as('eventAPICall')

cy.get('[data-attr=more-button]').first().click()
cy.contains('.LemonButton', 'Unsubscribe').click()
Expand All @@ -20,8 +19,6 @@ describe('Billing', () => {
cy.get('[data-attr=unsubscribe-reason-survey-textarea]').type('Product analytics')
cy.contains('.LemonModal .LemonButton', 'Unsubscribe').click()

cy.wait(['@eventAPICall']).its('response.statusCode').should('eq', '200')

cy.get('.LemonModal').should('not.exist')
cy.wait(['@unsubscribeProductAnalytics'])
})
Expand Down

0 comments on commit d72d35d

Please sign in to comment.