Skip to content

Commit

Permalink
GH-65 # Add playwright traces
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-C committed Aug 13, 2024
1 parent 16d61f7 commit e30233c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run playwright test
run: docker compose -f docker-compose.playwright.yml run pytest_runner
run: docker compose -f docker-compose.playwright.yml run pytest_runner --tracing=retain-on-failure --output=/code/tests/playwright-test-results/
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-traces
path: tests/playwright-test-results/
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/target
.env # Expected to contains VUE_APP_SENTRY_DSN and ROCKET_SENTRY_DSN
.env # Expected to contains VUE_APP_SENTRY_DSN and ROCKET_SENTRY_DSN

/tests/playwright-test-results/
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ run_integration_tests:
docker compose -f docker-compose.integration.yml down

run_e2e_tests:
docker compose -f docker-compose.playwright.yml build jarm_online_gui
docker compose -f docker-compose.playwright.yml build jarm_online_api
docker compose -f docker-compose.playwright.yml run pytest_runner
docker compose -f docker-compose.playwright.yml run pytest_runner --tracing=retain-on-failure --output=/code/tests/playwright-test-results/
docker compose -f docker-compose.playwright.yml down

# e2e test with headed browser can't run in docker as a Xserver is required
Expand Down

0 comments on commit e30233c

Please sign in to comment.