From 93d9a6354609687e154ffb6b193d6ceb762ec6cf Mon Sep 17 00:00:00 2001 From: uid11 Date: Mon, 4 May 2026 12:37:42 +0300 Subject: [PATCH] PRO-19539 fix: encoding screenshot filenames --- src/utils/test/getScreenshotFileNames.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/test/getScreenshotFileNames.ts b/src/utils/test/getScreenshotFileNames.ts index cea121a5..d9886d63 100644 --- a/src/utils/test/getScreenshotFileNames.ts +++ b/src/utils/test/getScreenshotFileNames.ts @@ -23,7 +23,7 @@ export const getScreenshotFileNames = async ( const directoryPath = join(SCREENSHOTS_DIRECTORY_PATH, directoryName); const alreadyExistingScreenshots = await readdir(directoryPath).catch((): string[] => []); - const fileNamePrefix = `${testStaticOptions.name}.`.replace(/"/g, ''); + const fileNamePrefix = `${testStaticOptions.name}.`.replace(/[^a-zA-Z0-9\-._~]/g, '_'); const currentFullPageScreenshotsIndex = Math.max( 0,