From ef780ae4af33517f54dfb7a41b4f4b653ac9f50f Mon Sep 17 00:00:00 2001 From: Felix Cornelissen Date: Thu, 19 Dec 2024 11:59:20 +0100 Subject: [PATCH] wip --- .github/workflows/playwright.yaml | 19 +------------------ .../Infrastructure/BaseTestInitializer.cs | 1 - 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/.github/workflows/playwright.yaml b/.github/workflows/playwright.yaml index 34d347b1a..954072a6e 100644 --- a/.github/workflows/playwright.yaml +++ b/.github/workflows/playwright.yaml @@ -25,29 +25,12 @@ jobs: run: pwsh bin/Debug/net8.0/playwright.ps1 install --with-deps - name: Run your tests id: e2e - run: dotnet test --logger trx + run: dotnet test env: 'TestSettings:TEST_USERNAME': ${{ secrets.PLAYWRIGHT_USERNAME }} 'TestSettings:TEST_PASSWORD': '${{ secrets.PLAYWRIGHT_PASSWORD }}' 'TestSettings:TEST_TOTP_SECRET': ${{ secrets.PLAYWRIGHT_TOTP_SECRET }} 'TestSettings:TEST_BASE_URL': ${{ secrets.PLAYWRIGHT_BASE_URL }} - - name: Create html file - if: ${{ failure() && steps.e2e.conclusion == 'failure' }} - run: | - cd bin/Debug/net8.0/playwright-traces - my_string=$(echo *.zip) - IFS=' ' read -ra my_array <<< "$my_string" - result='Playwright traces" - echo "$result" - echo "$result" > index.html - name: Deploy to GitHub Pages if: ${{ failure() && steps.e2e.conclusion == 'failure' }} uses: peaceiris/actions-gh-pages@v4 diff --git a/Kiss.Bff.EndToEndTest/Infrastructure/BaseTestInitializer.cs b/Kiss.Bff.EndToEndTest/Infrastructure/BaseTestInitializer.cs index 5399c2999..55b5fe29c 100644 --- a/Kiss.Bff.EndToEndTest/Infrastructure/BaseTestInitializer.cs +++ b/Kiss.Bff.EndToEndTest/Infrastructure/BaseTestInitializer.cs @@ -70,7 +70,6 @@ await Context.Tracing.StopAsync(new() Playwright tracing

Steps:

    {string.Join("", _steps.Select(step => $""" -
  1. {step}
  2. """))}