Skip to content

Commit

Permalink
fix test seeing window blur event on chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
cwli24 committed Sep 18, 2024
1 parent 12a042a commit 55a2347
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/specs/harvesting/final-harvesting.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ describe('final harvesting', () => {
]))
expect(errorsFinalHarvest.request.body.xhr.length).toBeGreaterThan(0)
expect(traceFinalHarvest.request.body.length).toBeGreaterThan(0)
expect(insightsFinalHarvest.request.body).toMatchObject({
ins: [{ actionName: 'DummyEvent', free: 'tacos' }]
})
expect(insightsFinalHarvest.request.body.ins[0]).toMatchObject(expect.objectContaining({ actionName: 'DummyEvent', free: 'tacos', eventType: 'PageAction' }))

/*
sendBeacon can be flakey so we check to see if at least one of the network
Expand Down

0 comments on commit 55a2347

Please sign in to comment.