From 59dbc0b3f23699f9207bd572e94e1e8da2efc881 Mon Sep 17 00:00:00 2001 From: Nicolas Merget <104347736+nmerget@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:31:55 +0200 Subject: [PATCH] fix: patternhub testing table not resolving e2e test files (#3078) --- showcases/patternhub/scripts/generate-test-table.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/showcases/patternhub/scripts/generate-test-table.js b/showcases/patternhub/scripts/generate-test-table.js index 58db66a3464..c5b263a6000 100644 --- a/showcases/patternhub/scripts/generate-test-table.js +++ b/showcases/patternhub/scripts/generate-test-table.js @@ -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` @@ -37,7 +40,7 @@ const generateTestTable = () => { name: componentName, singleComponentVisuals: hasComponentTest, singleComponentAxe: hasComponentTest, - showcaseVisuals: hasShowcaseTest, + showcaseVisuals: hasShowcaseVisuals, showcaseAxe: hasShowcaseTest, showcaseAC: hasShowcaseTest, showcaseGP: hasScreenReaderTest,