Skip to content

Commit

Permalink
Fix screenshot folder
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmac committed Dec 18, 2024
1 parent fa4d97c commit bf6fa2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cypress/support/plugins/accessibility/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,11 @@ function registerHooks(on, config) {
const details = screenshots.find((s) => s.name === name);

if (details) {
found.screenshot = path.join(details.specName, `${ name }.png`);
const screenFolder = path.join(folder, found.screenshot);
const screenFolder = path.join(folder, details.specName);
const destFile = path.join(screenFolder, `${ name }.png`);

found.screenshot = path.join(details.specName, `${ name }.png`);

if (!fs.existsSync(screenFolder)) {
fs.mkdirSync(screenFolder);
}
Expand Down

0 comments on commit bf6fa2a

Please sign in to comment.