We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3346c93 commit 93d9a63Copy full SHA for 93d9a63
1 file changed
src/utils/test/getScreenshotFileNames.ts
@@ -23,7 +23,7 @@ export const getScreenshotFileNames = async (
23
const directoryPath = join(SCREENSHOTS_DIRECTORY_PATH, directoryName);
24
const alreadyExistingScreenshots = await readdir(directoryPath).catch((): string[] => []);
25
26
- const fileNamePrefix = `${testStaticOptions.name}.`.replace(/"/g, '');
+ const fileNamePrefix = `${testStaticOptions.name}.`.replace(/[^a-zA-Z0-9\-._~]/g, '_');
27
28
const currentFullPageScreenshotsIndex = Math.max(
29
0,
0 commit comments