Updates Playwright merge-reports command

Updates the Playwright merge-reports command to explicitly specify the configuration file.

Removes unnecessary Playwright command.
This commit is contained in:
maguire-arman 2025-07-10 15:41:57 -04:00
parent 7a71b623f8
commit 08deb5b5e2

View file

@ -256,10 +256,8 @@ jobs:
echo 'Moving Playwright reports out of subfolders...'
find ./playwright-reports/ -mindepth 2 -type f -exec mv {} ./playwright-reports/ \;
echo 'Merging reports...'
PLAYWRIGHT_JUNIT_OUTPUT_DIR='/app/test-results' PLAYWRIGHT_JUNIT_OUTPUT_NAME='junit_results.xml' npx --prefix $PLAYWRIGHT_PATH playwright merge-reports ./playwright-reports
PLAYWRIGHT_JUNIT_OUTPUT_DIR='/app/test-results' PLAYWRIGHT_JUNIT_OUTPUT_NAME='junit_results.xml' npx --prefix $PLAYWRIGHT_PATH playwright merge-reports --config=$PLAYWRIGHT_PATH/playwright.config.ts ./playwright-reports
echo 'Running Playwright again to generate final reports...'
npx --prefix $PLAYWRIGHT_PATH playwright show-report --reporter=junit,playwright-jira-reporter,ortoni-report
echo 'Contents of ortoni-report:' && ls ./ortoni-report
echo 'Current dir: ' && pwd
echo 'Contents of current dir: ' && ls