Skip to content

Commit 94e1091

Browse files
authored
fix (tests) : update userstory path to specs/dashboard-samples (#23514) (#23515)
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 <rohaan@redhat.com>
1 parent 7b28434 commit 94e1091

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/e2e/configs/sh-scripts/initDevfileTests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ launchUserstories(){
1111
}
1212

1313
checkUserstoryName(){
14-
local checkedName="$(ls specs/devfiles | grep ${USERSTORY}.spec.ts)";
14+
local checkedName="$(ls specs/dashboard-samples | grep ${USERSTORY}.spec.ts)";
1515

1616
if [ -z "$TS_SELENIUM_EDITOR" ]; then
1717
echo ""
@@ -26,7 +26,7 @@ checkUserstoryName(){
2626
echo ""
2727
echo "Current value USERSTORY=\"${USERSTORY}\" doesn't match to any of existing tests:"
2828
echo ""
29-
echo "$(ls specs/devfiles | sed -e 's/.spec.ts//g')"
29+
echo "$(ls specs/dashboard-samples | sed -e 's/.spec.ts//g')"
3030
echo ""
3131
echo "Please choose one of the tests above, or unset the \"USERSTORY\" variable for launching all of them."
3232
echo ""

0 commit comments

Comments
 (0)