From 01fc1aaa3fe05ee571d6f1daaf92e9b9c9532853 Mon Sep 17 00:00:00 2001 From: Greg Leonard <45019882+greg-el@users.noreply.github.com> Date: Thu, 9 Nov 2023 14:20:35 +0000 Subject: [PATCH] Add timeout before interaction --- .../javascript-tracker/test/integration/integration.test.ts | 3 +++ trackers/javascript-tracker/test/pages/integration.html | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/trackers/javascript-tracker/test/integration/integration.test.ts b/trackers/javascript-tracker/test/integration/integration.test.ts index 1218068ff..30c207afd 100755 --- a/trackers/javascript-tracker/test/integration/integration.test.ts +++ b/trackers/javascript-tracker/test/integration/integration.test.ts @@ -50,12 +50,15 @@ describe('Snowplow Micro integration', () => { beforeAll(async () => { testIdentifier = await pageSetup(); await loadUrlAndWait('/integration.html?eventMethod=get'); + await browser.pause(5000); // Time for requests to get written await $('#bottomRight').click(); await browser.pause(5000); // Time for requests to get written await loadUrlAndWait('/integration.html?eventMethod=post'); + await browser.pause(5000); // Time for requests to get written await $('#bottomRight').click(); await browser.pause(6000); // Time for requests to get written await loadUrlAndWait('/integration.html?eventMethod=beacon'); + await browser.pause(5000); // Time for requests to get written await $('#bottomRight').click(); await browser.pause(6000); // Time for requests to get written log = await browser.call(async () => await fetchResults()); diff --git a/trackers/javascript-tracker/test/pages/integration.html b/trackers/javascript-tracker/test/pages/integration.html index 4cbaaa04e..e20bafb8f 100644 --- a/trackers/javascript-tracker/test/pages/integration.html +++ b/trackers/javascript-tracker/test/pages/integration.html @@ -76,7 +76,6 @@ customHeaders: { 'Content-Language': 'de-DE, en-CA', }, - retryFailedRequests: false, }); window.secondSnowplow('newTracker', 'b64off', collector_endpoint, { @@ -87,7 +86,6 @@ contexts: { webPage: false, }, - retryFailedRequests: false, }); window.snowplow(function () {