Skip to content

Commit

Permalink
Update src/libs/E2E/utils/NetworkInterceptor.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Golen <[email protected]>
  • Loading branch information
hannojg and tgolen authored Dec 6, 2024
1 parent cf34d9e commit a97a7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/E2E/utils/NetworkInterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default function installNetworkInterceptor(
const headers = getFetchRequestHeadersAsObject(options);
const url = fetchArgsGetUrl(args);

// Don't process these specific API commands because running them over and over again in the tests hammers the server in a bad way.
// Don't process these specific API commands because running them over and over again in the tests increases the size of the notificationPreferences NVP on the server to an infinite size. This is due to the NVP storing this setting once for each user's device, and since the E2E tests use AWS device farm, the user ends up with thousands of different devices, unlike normal users that might only ever have about a dozen. We found the NVP was over 2.5mb in size and that slows down database replication.
if (url.includes('OptInToPushNotifications') || url.includes('OptOutOfPushNotifications')) {
console.debug('Skipping request to opt in or out of push notifications');
return Promise.resolve(new Response());
Expand Down

0 comments on commit a97a7c1

Please sign in to comment.