Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
liyiy committed Jan 30, 2024
1 parent 733cf0f commit eefa9c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/surveys.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,13 +579,13 @@ describe('Surveys', () => {
cy.intercept('POST', '**/e/*').as('capture-assertion')
onPageLoad()
// first capture is $pageview
cy.get('.PostHogSurvey123').shadow().find('.cancel-btn-wrapper').click()
cy.wait('@capture-assertion')
cy.get('.PostHogSurvey123').shadow().find('.cancel-btn-wrapper').click()
cy.wait('@capture-assertion').then(async ({ request }) => {
const captures = await getBase64EncodedPayload(request)
expect(captures.map(({ event }) => event)).to.deep.equal([
'survey shown',
'survey dismissed',
// 'survey shown',
// 'survey dismissed',
'$pageleave',
])
})
Expand Down

0 comments on commit eefa9c6

Please sign in to comment.