Skip to content

Commit

Permalink
fix: patternhub testing table not resolving e2e test files (#3078)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget authored Aug 22, 2024
1 parent 0f95983 commit 59dbc0b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions showcases/patternhub/scripts/generate-test-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ const generateTestTable = () => {
const hasComponentTest = FS.existsSync(
`./../../packages/components/src/components/${componentName}/${componentName}.spec.tsx`
);
const hasShowcaseVisuals = FS.existsSync(
`./../../showcases/e2e/${componentName}/${componentName}-snapshot.spec.ts`
);
const hasShowcaseTest = FS.existsSync(
`./../../showcases/e2e/${componentName}/showcase-${componentName}.spec.ts`
`./../../showcases/e2e/${componentName}/${componentName}-a11y.spec.ts`
);
const hasScreenReaderTest = FS.existsSync(
`./../../showcases/screen-reader/tests/${componentName}.spec.ts`
Expand All @@ -37,7 +40,7 @@ const generateTestTable = () => {
name: componentName,
singleComponentVisuals: hasComponentTest,
singleComponentAxe: hasComponentTest,
showcaseVisuals: hasShowcaseTest,
showcaseVisuals: hasShowcaseVisuals,
showcaseAxe: hasShowcaseTest,
showcaseAC: hasShowcaseTest,
showcaseGP: hasScreenReaderTest,
Expand Down

0 comments on commit 59dbc0b

Please sign in to comment.