From 768b02548be7cccbe529aa5e4678cebdc7000f9c Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Thu, 20 Jul 2023 14:52:46 +0200 Subject: [PATCH] test(replay): Reduce flush delay for shorter tests (#8595) --- .../suites/replay/bufferMode/init.js | 4 ++-- .../suites/replay/compression/init.js | 4 ++-- .../suites/replay/customEvents/init.js | 4 ++-- .../suites/replay/errors/droppedError/init.js | 4 ++-- .../suites/replay/errors/errorModeCustomTransport/init.js | 4 ++-- .../suites/replay/errors/errorNotSent/init.js | 4 ++-- .../suites/replay/errors/errorsInSession/init.js | 4 ++-- .../browser-integration-tests/suites/replay/errors/init.js | 4 ++-- .../browser-integration-tests/suites/replay/flushing/init.js | 4 ++-- .../suites/replay/keyboardEvents/init.js | 4 ++-- .../suites/replay/largeMutations/defaultOptions/init.js | 4 ++-- .../suites/replay/largeMutations/mutationLimit/init.js | 4 ++-- .../suites/replay/multiple-pages/init.js | 4 ++-- .../browser-integration-tests/suites/replay/requests/init.js | 4 ++-- .../suites/replay/sessionExpiry/init.js | 4 ++-- .../suites/replay/sessionInactive/init.js | 4 ++-- .../suites/replay/sessionMaxAge/init.js | 4 ++-- .../suites/replay/slowClick/disable/init.js | 4 ++-- .../browser-integration-tests/suites/replay/slowClick/init.js | 4 ++-- .../suites/replay/unicode/compressed/init.js | 4 ++-- .../suites/replay/unicode/uncompressed/init.js | 4 ++-- 21 files changed, 42 insertions(+), 42 deletions(-) diff --git a/packages/browser-integration-tests/suites/replay/bufferMode/init.js b/packages/browser-integration-tests/suites/replay/bufferMode/init.js index c75a803ae33e..5691b52d96a3 100644 --- a/packages/browser-integration-tests/suites/replay/bufferMode/init.js +++ b/packages/browser-integration-tests/suites/replay/bufferMode/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 1000, - flushMaxDelay: 1000, + flushMinDelay: 200, + flushMaxDelay: 200, }); Sentry.init({ diff --git a/packages/browser-integration-tests/suites/replay/compression/init.js b/packages/browser-integration-tests/suites/replay/compression/init.js index 639cf05628e4..0c068170f01e 100644 --- a/packages/browser-integration-tests/suites/replay/compression/init.js +++ b/packages/browser-integration-tests/suites/replay/compression/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, useCompression: true, }); diff --git a/packages/browser-integration-tests/suites/replay/customEvents/init.js b/packages/browser-integration-tests/suites/replay/customEvents/init.js index a850366eaebf..5ddfef307e9c 100644 --- a/packages/browser-integration-tests/suites/replay/customEvents/init.js +++ b/packages/browser-integration-tests/suites/replay/customEvents/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, useCompression: false, blockAllMedia: false, }); diff --git a/packages/browser-integration-tests/suites/replay/errors/droppedError/init.js b/packages/browser-integration-tests/suites/replay/errors/droppedError/init.js index bd8259208409..1a441494482c 100644 --- a/packages/browser-integration-tests/suites/replay/errors/droppedError/init.js +++ b/packages/browser-integration-tests/suites/replay/errors/droppedError/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, }); Sentry.init({ diff --git a/packages/browser-integration-tests/suites/replay/errors/errorModeCustomTransport/init.js b/packages/browser-integration-tests/suites/replay/errors/errorModeCustomTransport/init.js index dca771f16c87..c925f082c665 100644 --- a/packages/browser-integration-tests/suites/replay/errors/errorModeCustomTransport/init.js +++ b/packages/browser-integration-tests/suites/replay/errors/errorModeCustomTransport/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, }); Sentry.init({ diff --git a/packages/browser-integration-tests/suites/replay/errors/errorNotSent/init.js b/packages/browser-integration-tests/suites/replay/errors/errorNotSent/init.js index 4f8dcac1ea28..528ca8b3285e 100644 --- a/packages/browser-integration-tests/suites/replay/errors/errorNotSent/init.js +++ b/packages/browser-integration-tests/suites/replay/errors/errorNotSent/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, }); Sentry.init({ diff --git a/packages/browser-integration-tests/suites/replay/errors/errorsInSession/init.js b/packages/browser-integration-tests/suites/replay/errors/errorsInSession/init.js index 019777c27156..dc77197ef93f 100644 --- a/packages/browser-integration-tests/suites/replay/errors/errorsInSession/init.js +++ b/packages/browser-integration-tests/suites/replay/errors/errorsInSession/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, }); Sentry.init({ diff --git a/packages/browser-integration-tests/suites/replay/errors/init.js b/packages/browser-integration-tests/suites/replay/errors/init.js index cd21267f1cc7..863d143939cf 100644 --- a/packages/browser-integration-tests/suites/replay/errors/init.js +++ b/packages/browser-integration-tests/suites/replay/errors/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 1000, - flushMaxDelay: 1000, + flushMinDelay: 200, + flushMaxDelay: 200, }); Sentry.init({ diff --git a/packages/browser-integration-tests/suites/replay/flushing/init.js b/packages/browser-integration-tests/suites/replay/flushing/init.js index db6a0aa21821..10f4385a1369 100644 --- a/packages/browser-integration-tests/suites/replay/flushing/init.js +++ b/packages/browser-integration-tests/suites/replay/flushing/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, useCompression: false, }); diff --git a/packages/browser-integration-tests/suites/replay/keyboardEvents/init.js b/packages/browser-integration-tests/suites/replay/keyboardEvents/init.js index 1b5f4f447543..7a0337445768 100644 --- a/packages/browser-integration-tests/suites/replay/keyboardEvents/init.js +++ b/packages/browser-integration-tests/suites/replay/keyboardEvents/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 1000, - flushMaxDelay: 1000, + flushMinDelay: 200, + flushMaxDelay: 200, }); Sentry.init({ diff --git a/packages/browser-integration-tests/suites/replay/largeMutations/defaultOptions/init.js b/packages/browser-integration-tests/suites/replay/largeMutations/defaultOptions/init.js index f64b8fff4e50..7a0337445768 100644 --- a/packages/browser-integration-tests/suites/replay/largeMutations/defaultOptions/init.js +++ b/packages/browser-integration-tests/suites/replay/largeMutations/defaultOptions/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, }); Sentry.init({ diff --git a/packages/browser-integration-tests/suites/replay/largeMutations/mutationLimit/init.js b/packages/browser-integration-tests/suites/replay/largeMutations/mutationLimit/init.js index 3aa2548f1522..ba43582d7816 100644 --- a/packages/browser-integration-tests/suites/replay/largeMutations/mutationLimit/init.js +++ b/packages/browser-integration-tests/suites/replay/largeMutations/mutationLimit/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, mutationLimit: 250, }); diff --git a/packages/browser-integration-tests/suites/replay/multiple-pages/init.js b/packages/browser-integration-tests/suites/replay/multiple-pages/init.js index 0242b48100b8..105c0114f2b0 100644 --- a/packages/browser-integration-tests/suites/replay/multiple-pages/init.js +++ b/packages/browser-integration-tests/suites/replay/multiple-pages/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, }); Sentry.init({ diff --git a/packages/browser-integration-tests/suites/replay/requests/init.js b/packages/browser-integration-tests/suites/replay/requests/init.js index db6a0aa21821..10f4385a1369 100644 --- a/packages/browser-integration-tests/suites/replay/requests/init.js +++ b/packages/browser-integration-tests/suites/replay/requests/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, useCompression: false, }); diff --git a/packages/browser-integration-tests/suites/replay/sessionExpiry/init.js b/packages/browser-integration-tests/suites/replay/sessionExpiry/init.js index 46af904118a6..d9008eb4f9d6 100644 --- a/packages/browser-integration-tests/suites/replay/sessionExpiry/init.js +++ b/packages/browser-integration-tests/suites/replay/sessionExpiry/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, }); Sentry.init({ diff --git a/packages/browser-integration-tests/suites/replay/sessionInactive/init.js b/packages/browser-integration-tests/suites/replay/sessionInactive/init.js index 4c641d160d79..5de219254c61 100644 --- a/packages/browser-integration-tests/suites/replay/sessionInactive/init.js +++ b/packages/browser-integration-tests/suites/replay/sessionInactive/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, }); Sentry.init({ diff --git a/packages/browser-integration-tests/suites/replay/sessionMaxAge/init.js b/packages/browser-integration-tests/suites/replay/sessionMaxAge/init.js index 0c16dc6ca3a1..4d7fc285d7b7 100644 --- a/packages/browser-integration-tests/suites/replay/sessionMaxAge/init.js +++ b/packages/browser-integration-tests/suites/replay/sessionMaxAge/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, }); Sentry.init({ diff --git a/packages/browser-integration-tests/suites/replay/slowClick/disable/init.js b/packages/browser-integration-tests/suites/replay/slowClick/disable/init.js index 28bb6ed8778e..b7008ced8f6b 100644 --- a/packages/browser-integration-tests/suites/replay/slowClick/disable/init.js +++ b/packages/browser-integration-tests/suites/replay/slowClick/disable/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, slowClickTimeout: 0, }); diff --git a/packages/browser-integration-tests/suites/replay/slowClick/init.js b/packages/browser-integration-tests/suites/replay/slowClick/init.js index 1699d299530e..367357937e9a 100644 --- a/packages/browser-integration-tests/suites/replay/slowClick/init.js +++ b/packages/browser-integration-tests/suites/replay/slowClick/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, slowClickTimeout: 3100, slowClickIgnoreSelectors: ['.ignore-class', '[ignore-attribute]'], }); diff --git a/packages/browser-integration-tests/suites/replay/unicode/compressed/init.js b/packages/browser-integration-tests/suites/replay/unicode/compressed/init.js index 86f8f5932ddb..0420898a5b88 100644 --- a/packages/browser-integration-tests/suites/replay/unicode/compressed/init.js +++ b/packages/browser-integration-tests/suites/replay/unicode/compressed/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, useCompression: true, maskAllText: false, }); diff --git a/packages/browser-integration-tests/suites/replay/unicode/uncompressed/init.js b/packages/browser-integration-tests/suites/replay/unicode/uncompressed/init.js index 98581679c8b6..a4a5a0cbd5c6 100644 --- a/packages/browser-integration-tests/suites/replay/unicode/uncompressed/init.js +++ b/packages/browser-integration-tests/suites/replay/unicode/uncompressed/init.js @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser'; window.Sentry = Sentry; window.Replay = new Sentry.Replay({ - flushMinDelay: 500, - flushMaxDelay: 500, + flushMinDelay: 200, + flushMaxDelay: 200, useCompression: false, maskAllText: false, });