Skip to content

Commit

Permalink
Merge pull request #163 from kien-ht/kien-ht-fix
Browse files Browse the repository at this point in the history
fix: Remove unexpected '-' in nested folder screenshot names
  • Loading branch information
PippoRaimondi authored Aug 18, 2023
2 parents f00da61 + fee25d2 commit 68abc5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 68abc5e

Please sign in to comment.