From 55a2347e4252b3c8a9a8976c11bbfb1711201927 Mon Sep 17 00:00:00 2001 From: Chunwai Li Date: Wed, 18 Sep 2024 12:45:19 -0500 Subject: [PATCH] fix test seeing window blur event on chromium --- tests/specs/harvesting/final-harvesting.e2e.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/specs/harvesting/final-harvesting.e2e.js b/tests/specs/harvesting/final-harvesting.e2e.js index 5699ce6b9..34250365d 100644 --- a/tests/specs/harvesting/final-harvesting.e2e.js +++ b/tests/specs/harvesting/final-harvesting.e2e.js @@ -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