diff --git a/azure-pipelines-automated-testing.yml b/azure-pipelines-automated-testing.yml index 2bbd6868..5c0725aa 100644 --- a/azure-pipelines-automated-testing.yml +++ b/azure-pipelines-automated-testing.yml @@ -89,9 +89,11 @@ stages: -e CI=true \ -e NODE_ENV=$(NODE_ENV) \ $(dockerImageName):$(imageTag) \ - bash -c "num_tests=$(npx playwright test --list --grep \"@$jira_card_number\") + bash -c "num_tests=$(npx playwright test playwright-tests --list --grep \"@$jira_card_number\") + echo $num_tests num_tests=${num_tests#*Total: } num_tests=${num_tests%% test*} + echo \"Extracted number of tests: $num_tests\" if [[ $num_tests -lt $(shardNumber) ]]; then echo 'There are fewer tests than shards. Skipping this shard.' else