diff --git a/services/web/frontend/js/features/pdf-preview/components/timeout-message-after-paywall-dismissal.tsx b/services/web/frontend/js/features/pdf-preview/components/timeout-message-after-paywall-dismissal.tsx
index 3a1d66fd3d..64ef0fbfc1 100644
--- a/services/web/frontend/js/features/pdf-preview/components/timeout-message-after-paywall-dismissal.tsx
+++ b/services/web/frontend/js/features/pdf-preview/components/timeout-message-after-paywall-dismissal.tsx
@@ -1,20 +1,31 @@
import getMeta from '@/utils/meta'
import { Trans, useTranslation } from 'react-i18next'
-import { memo, useEffect } from 'react'
+import { memo, useMemo } from 'react'
import { useDetachCompileContext } from '@/shared/context/detach-compile-context'
import StartFreeTrialButton from '@/shared/components/start-free-trial-button'
import MaterialIcon from '@/shared/components/material-icon'
import * as eventTracking from '@/infrastructure/event-tracking'
import PdfLogEntry from './pdf-log-entry'
-function TimeoutMessageAfterPaywallDismissal() {
- const { lastCompileOptions, isProjectOwner } = useDetachCompileContext()
+type TimeoutMessageProps = {
+ segmentation?: eventTracking.Segmentation
+}
+function TimeoutMessageAfterPaywallDismissal({
+ segmentation,
+}: TimeoutMessageProps) {
+ const { lastCompileOptions, isProjectOwner } = useDetachCompileContext()
return (
-
+
{getMeta('ol-ExposedSettings').enableSubscriptions && (
-
+
)}
)
@@ -22,26 +33,22 @@ function TimeoutMessageAfterPaywallDismissal() {
type CompileTimeoutProps = {
isProjectOwner: boolean
+ segmentation?: eventTracking.Segmentation
}
const CompileTimeout = memo(function CompileTimeout({
isProjectOwner,
+ segmentation,
}: CompileTimeoutProps) {
const { t } = useTranslation()
- useEffect(() => {
- eventTracking.sendMB('paywall-prompt', {
- 'paywall-type': 'compile-timeout',
+ const eventSegmentation = useMemo(
+ () => ({
+ ...segmentation,
'paywall-version': 'secondary',
- })
- }, [])
-
- function onPaywallClick() {
- eventTracking.sendMB('paywall-click', {
- 'paywall-type': 'compile-timeout',
- 'paywall-version': 'secondary',
- })
- }
+ }),
+ [segmentation]
+ )
return (
{t('try_for_free')}
@@ -104,18 +111,50 @@ const CompileTimeout = memo(function CompileTimeout({
type PreventTimeoutHelpMessageProps = {
lastCompileOptions: any
+ segmentation?: eventTracking.Segmentation
}
const PreventTimeoutHelpMessage = memo(function PreventTimeoutHelpMessage({
lastCompileOptions,
+ segmentation,
}: PreventTimeoutHelpMessageProps) {
const { t } = useTranslation()
+ function sendInfoClickEvent() {
+ eventTracking.sendMB('paywall-info-click', {
+ 'paywall-type': 'compile-timeout',
+ content: 'blog',
+ ...segmentation,
+ })
+ }
+
+ const compileTimeoutChangesBlogLink = (
+ /* eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key */
+
+ )
+
return (
+ {segmentation?.['10s-timeout-warning'] === 'enabled' && (
+
+
+
+
+
+ )}
+ {t('common_causes_of_compile_timeouts_include')}:
-
{t('large_or_high_resolution_images_taking_too_long_to_process')}
diff --git a/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-paywall-prompt.tsx b/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-paywall-prompt.tsx
index f6b8b4a309..ac5bdf8361 100644
--- a/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-paywall-prompt.tsx
+++ b/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-paywall-prompt.tsx
@@ -1,8 +1,16 @@
-import { Dispatch, SetStateAction, useEffect, useMemo, useState } from 'react'
+import {
+ Dispatch,
+ SetStateAction,
+ useCallback,
+ useEffect,
+ useMemo,
+ useState,
+} from 'react'
import getMeta from '@/utils/meta'
import * as eventTracking from '@/infrastructure/event-tracking'
import TimeoutMessageAfterPaywallDismissal from './timeout-message-after-paywall-dismissal'
import { UpgradePrompt } from '@/shared/components/upgrade-prompt'
+import { useDetachCompileContext } from '@/shared/context/detach-compile-context'
const studentRoles = [
'High-school student',
@@ -11,11 +19,6 @@ const studentRoles = [
'Doctoral student (e.g. PhD, MD, EngD)',
]
-type Segmentation = Record<
- string,
- string | number | boolean | undefined | unknown | any
->
-
interface TimeoutUpgradePaywallPromptProps {
setIsShowingPrimary?: Dispatch>
}
@@ -26,16 +29,32 @@ function TimeoutUpgradePaywallPrompt({
const odcRole = getMeta('ol-odcRole')
const planPrices = getMeta('ol-paywallPlans')
const isStudent = useMemo(() => studentRoles.includes(odcRole), [odcRole])
+ const { isProjectOwner } = useDetachCompileContext()
const [isPaywallDismissed, setIsPaywallDismissed] = useState(false)
+ const { reducedTimeoutWarning, compileTimeout } =
+ getMeta('ol-compileSettings')
- function sendPaywallEvent(event: string, segmentation?: Segmentation) {
- eventTracking.sendMB(event, {
- 'paywall-type': 'compile-timeout',
- 'paywall-version': 'primary',
- ...segmentation,
- })
- }
+ const sharedSegmentation = useMemo(
+ () => ({
+ '10s-timeout-warning': reducedTimeoutWarning,
+ 'is-owner': isProjectOwner,
+ time: compileTimeout,
+ }),
+ [isProjectOwner, reducedTimeoutWarning, compileTimeout]
+ )
+
+ const sendPaywallEvent = useCallback(
+ (event: string, segmentation?: eventTracking.Segmentation) => {
+ eventTracking.sendMB(event, {
+ 'paywall-type': 'compile-timeout',
+ 'paywall-version': 'primary',
+ ...sharedSegmentation,
+ ...segmentation,
+ })
+ },
+ [sharedSegmentation]
+ )
function onClose() {
sendPaywallEvent('paywall-dismiss')
@@ -62,7 +81,7 @@ function TimeoutUpgradePaywallPrompt({
if (setIsShowingPrimary) {
setIsShowingPrimary(true)
}
- }, [isStudent, setIsShowingPrimary])
+ }, [isStudent, setIsShowingPrimary, sendPaywallEvent])
return (
@@ -81,7 +100,9 @@ function TimeoutUpgradePaywallPrompt({
onClickPaywall={onClickPaywall}
/>
) : (
-
+
)}
)
diff --git a/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-prompt-new.tsx b/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-prompt-new.tsx
index 58613c785c..8ac666f78f 100644
--- a/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-prompt-new.tsx
+++ b/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-prompt-new.tsx
@@ -1,7 +1,7 @@
import { Trans, useTranslation } from 'react-i18next'
import { useDetachCompileContext } from '../../../shared/context/detach-compile-context'
import StartFreeTrialButton from '../../../shared/components/start-free-trial-button'
-import { memo, useCallback } from 'react'
+import { memo, useCallback, useMemo } from 'react'
import PdfLogEntry from './pdf-log-entry'
import { useStopOnFirstError } from '../../../shared/hooks/use-stop-on-first-error'
import OLButton from '@/features/ui/components/ol/ol-button'
@@ -26,14 +26,29 @@ function TimeoutUpgradePromptNew() {
setAnimateCompileDropdownArrow(true)
}, [enableStopOnFirstError, startCompile, setAnimateCompileDropdownArrow])
+ const { reducedTimeoutWarning, compileTimeout } =
+ getMeta('ol-compileSettings')
+
+ const sharedSegmentation = useMemo(
+ () => ({
+ '10s-timeout-warning': reducedTimeoutWarning,
+ 'is-owner': isProjectOwner,
+ time: compileTimeout,
+ }),
+ [isProjectOwner, reducedTimeoutWarning, compileTimeout]
+ )
+
return (
<>
-
+
{getMeta('ol-ExposedSettings').enableSubscriptions && (
)}
>
@@ -42,10 +57,12 @@ function TimeoutUpgradePromptNew() {
type CompileTimeoutProps = {
isProjectOwner: boolean
+ segmentation: eventTracking.Segmentation
}
const CompileTimeout = memo(function CompileTimeout({
isProjectOwner,
+ segmentation,
}: CompileTimeoutProps) {
const { t } = useTranslation()
@@ -62,7 +79,7 @@ const CompileTimeout = memo(function CompileTimeout({
{isProjectOwner ? (
- {t('upgrade_for_12x_more_compile_time')}{' '}
+ {t('upgrade_for_more_compile_time')}{' '}
{t(
'plus_additional_collaborators_document_history_track_changes_and_more'
)}
@@ -82,6 +99,7 @@ const CompileTimeout = memo(function CompileTimeout({
{t('start_a_free_trial')}
@@ -100,18 +118,19 @@ const CompileTimeout = memo(function CompileTimeout({
type PreventTimeoutHelpMessageProps = {
lastCompileOptions: any
handleEnableStopOnFirstErrorClick: () => void
- isProjectOwner: boolean
+ segmentation: eventTracking.Segmentation
}
const PreventTimeoutHelpMessage = memo(function PreventTimeoutHelpMessage({
lastCompileOptions,
handleEnableStopOnFirstErrorClick,
- isProjectOwner,
+ segmentation,
}: PreventTimeoutHelpMessageProps) {
const { t } = useTranslation()
function sendInfoClickEvent() {
eventTracking.sendMB('paywall-info-click', {
+ ...segmentation,
'paywall-type': 'compile-timeout',
content: 'blog',
})
@@ -121,7 +140,7 @@ const PreventTimeoutHelpMessage = memo(function PreventTimeoutHelpMessage({
/* eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key */
+ {segmentation?.['10s-timeout-warning'] === 'enabled' && (
+
+
+
+
+
+ )}
{t('common_causes_of_compile_timeouts_include')}:
-
@@ -194,23 +223,6 @@ const PreventTimeoutHelpMessage = memo(function PreventTimeoutHelpMessage({
]}
/>
-
-
- <>
- {isProjectOwner ? (
-
- ) : (
-
- )}
- >
-
-
>
}
// @ts-ignore
diff --git a/services/web/frontend/js/main/account-upgrade.ts b/services/web/frontend/js/main/account-upgrade.ts
index 9aa2490768..79155e5c0d 100644
--- a/services/web/frontend/js/main/account-upgrade.ts
+++ b/services/web/frontend/js/main/account-upgrade.ts
@@ -1,7 +1,14 @@
import * as eventTracking from '../infrastructure/event-tracking'
-export function startFreeTrial(source: string, variant?: string) {
- const eventSegmentation: Record = { 'paywall-type': source }
+export function startFreeTrial(
+ source: string,
+ variant?: string,
+ segmentation?: eventTracking.Segmentation
+) {
+ const eventSegmentation: Record = {
+ 'paywall-type': source,
+ ...segmentation,
+ }
if (variant) {
eventSegmentation.variant = variant
}
diff --git a/services/web/frontend/js/shared/components/start-free-trial-button.tsx b/services/web/frontend/js/shared/components/start-free-trial-button.tsx
index 2a6ea73dee..3a5d7bf467 100644
--- a/services/web/frontend/js/shared/components/start-free-trial-button.tsx
+++ b/services/web/frontend/js/shared/components/start-free-trial-button.tsx
@@ -10,6 +10,7 @@ type StartFreeTrialButtonProps = {
buttonProps?: React.ComponentProps
children?: React.ReactNode
handleClick?: React.ComponentProps['onClick']
+ segmentation?: eventTracking.Segmentation
}
export default function StartFreeTrialButton({
@@ -20,18 +21,20 @@ export default function StartFreeTrialButton({
handleClick,
source,
variant,
+ segmentation,
}: StartFreeTrialButtonProps) {
const { t } = useTranslation()
useEffect(() => {
const eventSegmentation: { [key: string]: unknown } = {
'paywall-type': source,
+ ...segmentation,
}
if (variant) {
eventSegmentation.variant = variant
}
eventTracking.sendMB('paywall-prompt', eventSegmentation)
- }, [source, variant])
+ }, [source, variant, segmentation])
const onClick = useCallback(
(event: React.MouseEvent) => {
@@ -41,9 +44,9 @@ export default function StartFreeTrialButton({
handleClick(event)
}
- startFreeTrial(source, variant)
+ startFreeTrial(source, variant, segmentation)
},
- [handleClick, source, variant]
+ [handleClick, source, variant, segmentation]
)
return (
diff --git a/services/web/frontend/js/shared/components/upgrade-prompt.tsx b/services/web/frontend/js/shared/components/upgrade-prompt.tsx
index 1469d0d42b..8f556a182c 100644
--- a/services/web/frontend/js/shared/components/upgrade-prompt.tsx
+++ b/services/web/frontend/js/shared/components/upgrade-prompt.tsx
@@ -104,7 +104,7 @@ export function UpgradePrompt({
- {t('12x_more_compile_time')}
+ {t('24x_more_compile_time')}
{t('collabs_per_proj', { collabcount: isStudent ? 6 : 10 })}
diff --git a/services/web/frontend/js/utils/meta.ts b/services/web/frontend/js/utils/meta.ts
index 230954ef0b..f4ac2502fd 100644
--- a/services/web/frontend/js/utils/meta.ts
+++ b/services/web/frontend/js/utils/meta.ts
@@ -86,7 +86,10 @@ export interface Meta {
'ol-cannot-reactivate-subscription': boolean
'ol-cannot-use-ai': boolean
'ol-chatEnabled': boolean
-
+ 'ol-compileSettings': {
+ reducedTimeoutWarning: string
+ compileTimeout: number
+ }
'ol-compilesUserContentDomain': string
'ol-countryCode': PricingFormState['country']
'ol-couponCode': PricingFormState['coupon']
diff --git a/services/web/locales/da.json b/services/web/locales/da.json
index 7b9df181ac..9e90a5bce2 100644
--- a/services/web/locales/da.json
+++ b/services/web/locales/da.json
@@ -2,6 +2,7 @@
"12x_basic": "12x basis",
"1_2_width": "½ bredde",
"1_4_width": "¼ bredde",
+ "24x_basic": "24x basis",
"3_4_width": "¾ bredde",
"About": "Om",
"Account": "Konto",
diff --git a/services/web/locales/en.json b/services/web/locales/en.json
index 3b665d9b9a..9380eb4834 100644
--- a/services/web/locales/en.json
+++ b/services/web/locales/en.json
@@ -1,10 +1,10 @@
{
"0_free_suggestions": "0 free suggestions",
- "12x_basic": "12x Basic",
- "12x_more_compile_time": "12x more compile time on our fastest servers",
"1_2_width": "½ width",
"1_4_width": "¼ width",
"1_free_suggestion": "1 free suggestion",
+ "24x_basic": "24x Basic",
+ "24x_more_compile_time": "24x more compile time on our fastest servers",
"3_4_width": "¾ width",
"About": "About",
"Account": "Account",
@@ -163,6 +163,7 @@
"an_error_occured_while_restoring_project": "An error occured while restoring the project",
"an_error_occurred_when_verifying_the_coupon_code": "An error occurred when verifying the coupon code",
"and": "and",
+ "and_upgrade_for_compile_time": "And you can upgrade to get more compile time.",
"annual": "Annual",
"annual_discount": "Annual discount",
"anonymous": "Anonymous",
@@ -1085,6 +1086,7 @@
"integrations": "Integrations",
"integrations_like_github": "Integrations like GitHub Sync",
"interested_in_cheaper_personal_plan": "Would you be interested in the cheaper <0>__price__0> Personal plan?",
+ "introducing_shorter_compile_timeout": "We’re <0>introducing a shorter compile timeout limit0>. This project currently exceeds the new limit, so it might not compile from 16th July 2025.",
"invalid_certificate": "Invalid certificate. Please check the certificate and try again.",
"invalid_confirmation_code": "That didn’t work. Please check the code and try again.",
"invalid_email": "An email address is invalid",
@@ -1524,7 +1526,6 @@
"original_price": "Original price",
"other": "Other",
"other_actions": "Other Actions",
- "other_causes_of_compile_timeouts": "Other causes of compile timeouts",
"other_logs_and_files": "Other logs and files",
"other_output_files": "Download other output files",
"other_sessions": "Other Sessions",
@@ -1756,6 +1757,8 @@
"reactivate_subscription": "Reactivate your subscription",
"read_lines_from_path": "Read lines from __path__",
"read_more": "Read more",
+ "read_more_about_compile_timeout_changes": "Read more about changes to compile timeout limits",
+ "read_more_about_fix_prevent_timeout": "Read more about how to fix and prevent timeouts",
"read_more_about_free_compile_timeouts_servers": "Read more about changes to free compile timeouts and servers",
"read_only_dropbox_sync_message": "As a read-only viewer you can sync the current project version to Dropbox, but changes made in Dropbox will <0>not0> sync back to Overleaf.",
"read_only_token": "Read-Only Token",
@@ -2312,6 +2315,7 @@
"this_is_the_file_that_references_pulled_from_your_reference_manager_will_be_added_to": "This is the file that references pulled from your reference manager will be added to.",
"this_is_your_template": "This is your template from your project",
"this_project_already_has_maximum_collaborators": "This project already has the maximum number of collaborators permitted on the owner’s plan. This means you can view but not edit or review the project.",
+ "this_project_compiled_but_soon_might_not": "This project compiled, but soon it might not",
"this_project_contains_a_file_called_output": "This project contains a file called output.pdf. If that file exists, please rename it and compile again.",
"this_project_exceeded_collaborator_limit": "This project exceeded the collaborator limit for your plan. All other users now have view-only access.",
"this_project_exceeded_compile_timeout_limit_on_free_plan": "This project exceeded the compile timeout limit on our free plan.",
@@ -2507,7 +2511,7 @@
"updating_site": "Updating Site",
"upgrade": "Upgrade",
"upgrade_cc_btn": "Upgrade now, pay after 7 days",
- "upgrade_for_12x_more_compile_time": "Upgrade to get 12x more compile time",
+ "upgrade_for_more_compile_time": "Upgrade to get more compile time",
"upgrade_my_plan": "Upgrade my plan",
"upgrade_now": "Upgrade now",
"upgrade_plan": "Upgrade plan",
@@ -2515,7 +2519,7 @@
"upgrade_to_add_more_collaborators_and_access_collaboration_features": "Upgrade to add more collaborators and access collaboration features like track changes and full project history.",
"upgrade_to_get_feature": "Upgrade to get __feature__, plus:",
"upgrade_to_review": "Upgrade to Review",
- "upgrade_to_unlock_more_time": "Upgrade now to unlock 12x more compile time on our fastest servers.",
+ "upgrade_to_unlock_more_time": "Upgrade now to unlock 24x more compile time on our fastest servers.",
"upgrade_your_subscription": "Upgrade your subscription",
"upload": "Upload",
"upload_failed": "Upload failed",
@@ -2617,8 +2621,7 @@
"were_making_some_changes_to_project_sharing_this_means_you_will_be_visible": "We’re making some <0>changes to project sharing0>. This means, as someone with edit access, your name and email address will be visible to the project owner and other editors.",
"were_performing_maintenance": "We’re performing maintenance on Overleaf and you need to wait a moment. Sorry for any inconvenience. The editor will refresh automatically in __seconds__ seconds.",
"were_redesigning_our_editor_to_make_it_easier_to_use": "We’re redesigning our editor to make it easier to use and ensure it’s future ready. Try it out and give us your feedback to help us get this right. (Some features are still in the works, so you can switch back at any time.)",
- "weve_recently_reduced_the_compile_timeout_limit_which_may_have_affected_this_project": "We’ve recently <0>reduced the compile timeout limit0> on our free plan, which may have affected this project.",
- "weve_recently_reduced_the_compile_timeout_limit_which_may_have_affected_your_project": "We’ve recently <0>reduced the compile timeout limit0> on our free plan, which may have affected your project.",
+ "were_reducing_compile_timeout": "We’re in the process of <0>reducing the compile timeout limit0> on our free plan, which may affect your project in future.",
"what_do_you_need": "What do you need?",
"what_do_you_need_help_with": "What do you need help with?",
"what_does_this_mean": "What does this mean?",
@@ -2698,6 +2701,7 @@
"you_have_been_removed_from_this_project_and_will_be_redirected_to_project_dashboard": "You have been removed from this project, and will no longer have access to it. You will be redirected to your project dashboard momentarily.",
"you_have_x_licenses_and_your_plan_supports_up_to_y": "You have __addedUsersSize__ licenses and your plan supports up to __groupSize__.",
"you_have_x_licenses_on_your_subscription": "You have __groupSize__ licenses on your subscription.",
+ "you_may_be_able_to_fix_issues_to_speed_up_the_compile": "You may be able to fix issues to <0>speed up the compile0>.",
"you_need_to_configure_your_sso_settings": "You need to configure and test your SSO settings before enabling SSO",
"you_unpaused_your_subscription": "You unpaused your subscription.",
"you_will_be_able_to_contact_us_any_time_to_share_your_feedback": "<0>You will be able to contact us0> any time to share your feedback",
@@ -2735,6 +2739,7 @@
"your_plan_is_limited_to_n_editors": "Your plan allows __count__ collaborator with edit access and unlimited viewers.",
"your_plan_is_limited_to_n_editors_plural": "Your plan allows __count__ collaborators with edit access and unlimited viewers.",
"your_premium_plan_is_paused": "Your Premium plan is <0>paused0>.",
+ "your_project_compiled_but_soon_might_not": "Your project compiled, but soon it might not",
"your_project_exceeded_collaborator_limit": "Your project exceeded the collaborator limit and access levels were changed. Select a new access level for your collaborators, or upgrade to add more editors or reviewers.",
"your_project_exceeded_compile_timeout_limit_on_free_plan": "Your project exceeded the compile timeout limit on our free plan.",
"your_project_near_compile_timeout_limit": "Your project is near the compile timeout limit for our free plan.",
diff --git a/services/web/locales/ru.json b/services/web/locales/ru.json
index 13975aadf2..0df6f59fdf 100644
--- a/services/web/locales/ru.json
+++ b/services/web/locales/ru.json
@@ -3,6 +3,8 @@
"12x_more_compile_time": "В 12 раз больше времени компиляции на наших быстрейших серверах",
"1_2_width": "½ ширины",
"1_4_width": "¼ ширины",
+ "24x_basic": "24х базовый",
+ "24x_more_compile_time": "В 24 раз больше времени компиляции на наших быстрейших серверах",
"3_4_width": "¾ ширины",
"About": "О сайте",
"Account": "Аккаунт",
diff --git a/services/web/locales/zh-CN.json b/services/web/locales/zh-CN.json
index bd3519a73c..6c4249aeff 100644
--- a/services/web/locales/zh-CN.json
+++ b/services/web/locales/zh-CN.json
@@ -3,6 +3,8 @@
"12x_more_compile_time": "在更快的服务器上获取12倍的编译时间",
"1_2_width": "½ 宽度",
"1_4_width": "¼ 宽度",
+ "24x_basic": "24倍 免费时长 (240s)",
+ "24x_more_compile_time": "在更快的服务器上获取24倍的编译时间",
"3_4_width": "¾ 宽度",
"About": "关于",
"Account": "账户",
diff --git a/services/web/test/frontend/components/pdf-preview/pdf-preview-detached-root.spec.tsx b/services/web/test/frontend/components/pdf-preview/pdf-preview-detached-root.spec.tsx
index cbb65861f9..4262c8070b 100644
--- a/services/web/test/frontend/components/pdf-preview/pdf-preview-detached-root.spec.tsx
+++ b/services/web/test/frontend/components/pdf-preview/pdf-preview-detached-root.spec.tsx
@@ -8,6 +8,10 @@ describe('', function () {
window.metaAttributesCache.set('ol-detachRole', 'detached')
window.metaAttributesCache.set('ol-projectName', 'Project Name')
window.metaAttributesCache.set('ol-preventCompileOnLoad', true)
+ window.metaAttributesCache.set('ol-compileSettings', {
+ reducedWarningThreshold: 'default',
+ compileTimeout: 240,
+ })
cy.interceptEvents()
})
diff --git a/services/web/test/frontend/components/pdf-preview/pdf-preview.spec.tsx b/services/web/test/frontend/components/pdf-preview/pdf-preview.spec.tsx
index fd2075236c..ed0ab2ffc1 100644
--- a/services/web/test/frontend/components/pdf-preview/pdf-preview.spec.tsx
+++ b/services/web/test/frontend/components/pdf-preview/pdf-preview.spec.tsx
@@ -50,6 +50,10 @@ describe('', function () {
'populate-clsi-cache': 'enabled',
})
window.metaAttributesCache.set('ol-projectOwnerHasPremiumOnPageLoad', true)
+ window.metaAttributesCache.set('ol-compileSettings', {
+ reducedWarningThreshold: 'default',
+ compileTimeout: 240,
+ })
cy.interceptEvents()
})