Skip to content

Commit

Permalink
Add timeout before interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-el committed Nov 9, 2023
1 parent 3cec1e9 commit 01fc1aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 0 additions & 2 deletions trackers/javascript-tracker/test/pages/integration.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
customHeaders: {
'Content-Language': 'de-DE, en-CA',
},
retryFailedRequests: false,
});

window.secondSnowplow('newTracker', 'b64off', collector_endpoint, {
Expand All @@ -87,7 +86,6 @@
contexts: {
webPage: false,
},
retryFailedRequests: false,
});

window.snowplow(function () {
Expand Down

0 comments on commit 01fc1aa

Please sign in to comment.