From e30233cd32e80d377b63a1f60268449a98845982 Mon Sep 17 00:00:00 2001 From: Hugo-C Date: Tue, 13 Aug 2024 23:03:45 +0200 Subject: [PATCH] GH-65 # Add playwright traces --- .github/workflows/playwright.yml | 7 ++++++- .gitignore | 4 +++- Makefile | 4 +--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 7ef1b32..93b9c1c 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -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 \ No newline at end of file + 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/ \ No newline at end of file diff --git a/.gitignore b/.gitignore index 8fcc8fa..949ea22 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /target -.env # Expected to contains VUE_APP_SENTRY_DSN and ROCKET_SENTRY_DSN \ No newline at end of file +.env # Expected to contains VUE_APP_SENTRY_DSN and ROCKET_SENTRY_DSN + +/tests/playwright-test-results/ \ No newline at end of file diff --git a/Makefile b/Makefile index 3f27ba4..7fc4215 100644 --- a/Makefile +++ b/Makefile @@ -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