diff --git a/apps/web/components/eventtype/EventAdvancedTab.tsx b/apps/web/components/eventtype/EventAdvancedTab.tsx index 2d5f17c66d..540021f92a 100644 --- a/apps/web/components/eventtype/EventAdvancedTab.tsx +++ b/apps/web/components/eventtype/EventAdvancedTab.tsx @@ -35,6 +35,7 @@ import { Tooltip, } from "@calcom/ui"; import { Copy, Edit } from "@calcom/ui/components/icon"; +import { IS_VISUAL_REGRESSION_TESTING } from "@calcom/web/constants"; import RequiresConfirmationController from "./RequiresConfirmationController"; @@ -286,36 +287,38 @@ export const EventAdvancedTab = ({ eventType, team }: Pick {/* Textfield has some margin by default we remove that so we can keep consitant aligment */}
- - - - } - /> + {!IS_VISUAL_REGRESSION_TESTING && ( + + + + } + /> + )}

diff --git a/apps/web/constants.ts b/apps/web/constants.ts new file mode 100644 index 0000000000..c19877c5ef --- /dev/null +++ b/apps/web/constants.ts @@ -0,0 +1 @@ +export const IS_VISUAL_REGRESSION_TESTING = Boolean(globalThis.window?.Meticulous?.isRunningAsTest); diff --git a/apps/web/pages/_document.tsx b/apps/web/pages/_document.tsx index 3d6fdae736..006b73c8fa 100644 --- a/apps/web/pages/_document.tsx +++ b/apps/web/pages/_document.tsx @@ -51,7 +51,7 @@ class MyDocument extends Document { - {(!IS_PRODUCTION || process.env.VERCEL_ENV === "preview") && ( + {!IS_PRODUCTION && process.env.VERCEL_ENV === "preview" && ( // eslint-disable-next-line @next/next/no-sync-scripts