diff --git a/src/command.js b/src/command.js index 565d992..d24e819 100644 --- a/src/command.js +++ b/src/command.js @@ -20,7 +20,7 @@ const compareSnapshotCommand = defaultScreenshotOptions => { recurseOptions = userConfig.RETRY_OPTIONS ) => { const specName = Cypress.spec.name - const testName = `${specName.replace('.js', '')}-${name}` + const testName = `${specName.replace('.js', '')}${/^\//.test(name) ? '' : '-'}${name}` const defaultRecurseOptions = { limit: 1,