Refactor: inputListComponent.spec.ts to improve test reliability and performance (#4859)
* Refactor inputListComponent.spec.ts to improve test reliability and performance * Refactor: update intComponent tests for improved reliability and performance (#4860) * Refactor inputListComponent.spec.ts to improve test reliability and performance * Refactor IntComponent test to improve search reliability and performance * Refactor test grep pattern to fix syntax error * debuging ci * Refactor test grep pattern to fix syntax error and improve test reliability and performance
This commit is contained in:
parent
cf30b88a91
commit
5d2de860e5
3 changed files with 18 additions and 8 deletions
9
.github/workflows/typescript_test.yml
vendored
9
.github/workflows/typescript_test.yml
vendored
|
|
@ -149,7 +149,7 @@ jobs:
|
|||
if [ ${#TAGS[@]} -gt 0 ]; then
|
||||
# Join tags with | for OR logic
|
||||
REGEX_PATTERN=$(IFS='|'; echo "${TAGS[*]}")
|
||||
TEST_GREP="--grep=\"${REGEX_PATTERN}\""
|
||||
TEST_GREP="--grep \"${REGEX_PATTERN}\""
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
@ -270,8 +270,11 @@ jobs:
|
|||
command: |
|
||||
cd src/frontend
|
||||
echo 'Running tests with pattern: ${{ needs.determine-test-suite.outputs.test_grep }}'
|
||||
npx playwright test ${{ inputs.tests_folder }} ${{ needs.determine-test-suite.outputs.test_grep }} --shard ${{ matrix.shardIndex }} --list
|
||||
npx playwright test ${{ inputs.tests_folder }} ${{ needs.determine-test-suite.outputs.test_grep }} --trace on --shard ${{ matrix.shardIndex }} --workers 2
|
||||
npx playwright test ${{ inputs.tests_folder }} ${{ needs.determine-test-suite.outputs.test_grep }} --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --list
|
||||
# echo command before running
|
||||
echo "npx playwright test ${{ inputs.tests_folder }} ${{ needs.determine-test-suite.outputs.test_grep }} --trace on --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --workers 2"
|
||||
|
||||
npx playwright test ${{ inputs.tests_folder }} ${{ needs.determine-test-suite.outputs.test_grep }} --trace on --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --workers 2
|
||||
|
||||
- name: Upload blob report to GitHub Actions Artifacts
|
||||
if: always()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue