From 1acbca76b36b917c337ef37157a80f53f8b4acbc Mon Sep 17 00:00:00 2001 From: Anna Szczech Date: Tue, 28 Jan 2025 09:44:11 +0100 Subject: [PATCH] extend json report --- .github/actions/run-pw-tests/action.yml | 2 ++ .github/workflows/pr-automation.yml | 2 ++ playwright.config.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/actions/run-pw-tests/action.yml b/.github/actions/run-pw-tests/action.yml index f56c2c16591..088eee2ad1a 100644 --- a/.github/actions/run-pw-tests/action.yml +++ b/.github/actions/run-pw-tests/action.yml @@ -82,6 +82,8 @@ runs: WORKERS: ${{ inputs.PW_WORKERS }} RETRIES: ${{ inputs.PW_RETRIES }} PROJECT: ${{ inputs.PROJECT }} + BRANCH_NAME: ${{ inputs.BRANCH_NAME }} + SALEOR_CLOUD_SERVICE: ${{ inputs.SALEOR_CLOUD_SERVICE }} run: | PROJECTS=($PROJECT) diff --git a/.github/workflows/pr-automation.yml b/.github/workflows/pr-automation.yml index b4cdbddc933..0f7295aeffb 100644 --- a/.github/workflows/pr-automation.yml +++ b/.github/workflows/pr-automation.yml @@ -202,6 +202,8 @@ jobs: PW_RETRIES: ${{ vars.PW_RETRIES }} ACCOUNTS: ${{ needs.deploy-dashboard.outputs.ACCOUNTS }} E2E_ENCODE_PASS: ${{ secrets.E2E_ENCODE_PASS }} + BRANCH_NAME: ${{ github.ref}} + SALEOR_CLOUD_SERVICE: ${{ steps.cloud_variables.outputs.SALEOR_CLOUD_SERVICE }} - name: submit-results-to-testmo if: always() diff --git a/playwright.config.ts b/playwright.config.ts index 761e63873b2..a6b9a875ae0 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -44,6 +44,8 @@ export default defineConfig({ outputFile: `ctrf-report-${shardNumber}.json`, // Optional: Output file name. Defaults to 'ctrf-report.json'. minimal: true, // Optional: Generate a minimal report. Defaults to 'false'. Overrides screenshot and testType when set to true appName: 'Saleor Dashboard', // Optional: Specify the name of the application under test. + branchName: env.BRANCH_NAME || '', // Optional: Specify the branch name. + testEnvironment: env.SALEOR_CLOUD_SERVICE || '' // Optional: Specify the test environment (e.g. staging, production). }]] : [["html"], ["list"]], expect: { timeout: 10 * 1000 },