diff --git a/client/src/templates/Challenges/utils/frame.ts b/client/src/templates/Challenges/utils/frame.ts index a28d4a29a2b..f3b03032035 100644 --- a/client/src/templates/Challenges/utils/frame.ts +++ b/client/src/templates/Challenges/utils/frame.ts @@ -86,8 +86,17 @@ const DOCUMENT_NOT_FOUND_ERROR = 'misc.document-notfound'; // of the frame. React dom errors already appear in the console, so onerror // does not need to pass them on to the default error handler. -export const createHeader = (id = mainPreviewId) => ` +// The "fcc-hide-header" class on line 95 is added to ensure that the CSSHelper class ignores this style element +// during tests, preventing CSS-related test failures. + +export const createHeader = (id = mainPreviewId) => + ` +