Skip to content

Commit

Permalink
Sophisticated titles
Browse files Browse the repository at this point in the history
  • Loading branch information
skitterm committed Jan 23, 2024
1 parent 947e072 commit 87f2412
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/shared/src/write-archive/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ export async function writeTestResult(
chromaticStorybookParams: ChromaticStorybookParameters
) {
const { titlePath, outputDir, pageUrl } = e2eTestInfo;
// const titlePathWithoutFileExtensions = titlePath.map((aTitle) => aTitle.split('.')[0]);
// const title = titlePathWithoutFileExtensions.join(' / ');
const title = titlePath[titlePath.length - 1];
const titlePathWithoutFileExtensions = titlePath.map((aTitle) => aTitle.split('.')[0]);
const title = titlePathWithoutFileExtensions.join(' / ');
// outputDir gives us the test-specific subfolder (https://playwright.dev/docs/api/class-testconfig#test-config-output-dir);
// we want to write one level above that
const finalOutputDir = join(outputDir, '..', 'chromatic-archives');
Expand Down

0 comments on commit 87f2412

Please sign in to comment.