Skip to content

Commit 920232a

Browse files
Output screenshots to repo root docs/images instead of local screenshots-output
1 parent d55233e commit 920232a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tests/screenshots/blog-screenshots.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
*
44
* Captures key UI states from the TalentManagement app for use in blog posts
55
* and documentation. Each screenshot:
6-
* - Is saved as a PNG in screenshots-output/{series}/
6+
* - Is saved as a PNG in {repo-root}/docs/images/{series}/
77
* - Gets a matching WAV narration file in the same folder (Windows TTS via speak.ps1)
88
* - Is registered in screenshot-catalog.json for AI-assisted blog writing
99
*
1010
* Usage:
1111
* npx playwright test --project=screenshots
1212
*
1313
* Output:
14-
* screenshots-output/series-x/filename.png ← screenshot
15-
* screenshots-output/series-x/filename.wav ← narration audio (Windows only)
16-
* screenshot-catalog.json ← machine-readable index
14+
* ../../../../docs/images/series-x/filename.png ← screenshot (repo root docs folder)
15+
* ../../../../docs/images/series-x/filename.wav ← narration audio (Windows only)
16+
* screenshot-catalog.json ← machine-readable index
1717
*
1818
* Prerequisites:
1919
* - Angular: http://localhost:4200
@@ -63,7 +63,7 @@ interface Catalog {
6363
// Config
6464
// ---------------------------------------------------------------------------
6565

66-
const OUTPUT_ROOT = path.join(__dirname, '..', '..', 'screenshots-output');
66+
const OUTPUT_ROOT = path.join(__dirname, '..', '..', '..', '..', 'docs', 'images');
6767
const CATALOG_PATH = path.join(__dirname, '..', '..', 'screenshot-catalog.json');
6868
const SPEAK_SCRIPT = path.join(__dirname, '..', '..', 'scripts', 'speak.ps1');
6969

@@ -146,8 +146,8 @@ async function shot(
146146
generateAudio(meta.narration, wavPath);
147147

148148
// 3. Upsert catalog entry
149-
const relativePng = `screenshots-output/${series}/${filename}`;
150-
const relativeWav = `screenshots-output/${series}/${baseName}.wav`;
149+
const relativePng = `docs/images/${series}/${filename}`;
150+
const relativeWav = `docs/images/${series}/${baseName}.wav`;
151151

152152
catalog.screenshots = catalog.screenshots.filter(
153153
e => !(e.series === series && e.filename === filename)

0 commit comments

Comments
 (0)