From 14386710c61609bd1c97c4f7b9b09943c583c154 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Wed, 6 Aug 2025 14:55:40 +0530 Subject: [PATCH] fix (tests) : update userstory path to specs/dashboard-samples (#23514) The test script was previously checking for user stories under `specs/devfiles`, which no longer exists or contains relevant test specs. This commit updates the `checkUserstoryName` function to look in `specs/dashboard-samples`, where the current user story specs (e.g., `*.spec.ts`) are now located. This resolves issues where valid USERSTORY values were incorrectly reported as missing. Signed-off-by: Rohan Kumar --- tests/e2e/configs/sh-scripts/initDevfileTests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/configs/sh-scripts/initDevfileTests.sh b/tests/e2e/configs/sh-scripts/initDevfileTests.sh index 325da2cee5a..ce7b98576b3 100755 --- a/tests/e2e/configs/sh-scripts/initDevfileTests.sh +++ b/tests/e2e/configs/sh-scripts/initDevfileTests.sh @@ -11,7 +11,7 @@ launchUserstories(){ } checkUserstoryName(){ - local checkedName="$(ls specs/devfiles | grep ${USERSTORY}.spec.ts)"; + local checkedName="$(ls specs/dashboard-samples | grep ${USERSTORY}.spec.ts)"; if [ -z "$TS_SELENIUM_EDITOR" ]; then echo "" @@ -26,7 +26,7 @@ checkUserstoryName(){ echo "" echo "Current value USERSTORY=\"${USERSTORY}\" doesn't match to any of existing tests:" echo "" - echo "$(ls specs/devfiles | sed -e 's/.spec.ts//g')" + echo "$(ls specs/dashboard-samples | sed -e 's/.spec.ts//g')" echo "" echo "Please choose one of the tests above, or unset the \"USERSTORY\" variable for launching all of them." echo ""