We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3346c93 + 93d9a63 commit ea23c2aCopy full SHA for ea23c2a
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