diff --git a/.github/workflows/cypress_tests_workflow.yml b/.github/workflows/cypress_tests_workflow.yml index 0a6471a2ce8..60d5b1b3a57 100644 --- a/.github/workflows/cypress_tests_workflow.yml +++ b/.github/workflows/cypress_tests_workflow.yml @@ -150,12 +150,23 @@ jobs: } # Process spec files at the root - process_spec "cypress/integration/*.spec.js" "root" + root_specs=$(find ./cypress/integration -maxdepth 1 -name "*.spec.js") + if [ -n "$root_specs" ]; then + echo "Found root specs: $root_specs" + process_spec "cypress/integration/*.spec.js" "root" + fi # Process spec folders for folder in ./cypress/integration/*/; do - folder_name=$(basename "$folder") - process_spec "cypress/integration/$folder_name/**/*.spec.js" "$folder_name" + if [ -d "$folder" ]; then + folder_name=$(basename "$folder") + echo "Processing folder: $folder_name" + folder_specs=$(find "$folder" -name "*.spec.js") + if [ -n "$folder_specs" ]; then + echo "Found specs in $folder_name: $folder_specs" + process_spec "cypress/integration/$folder_name/**/*.spec.js" "$folder_name" + fi + fi done echo "Final number of items in inputs_array: ${#inputs_array[@]}"