From a8f29fa89463060010adb41c41ff206056fde726 Mon Sep 17 00:00:00 2001 From: Rushabh Shroff Date: Tue, 13 Oct 2026 14:48:26 +0530 Subject: [PATCH] Add PERCY_BRANCH configuration for visual regression tests - Introduced PERCY_BRANCH variable in the visual regression workflow to specify the branch for visual testing. - Updated both baseline and diff-on job configurations to include the new PERCY_BRANCH setting. --- .github/workflows/test-visual-regression.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test-visual-regression.yml b/.github/workflows/test-visual-regression.yml index f70195a..b878513 100644 --- a/.github/workflows/test-visual-regression.yml +++ b/.github/workflows/test-visual-regression.yml @@ -48,6 +48,7 @@ jobs: BUILD_NUMBER: ${{ github.run_number }}-baseline BASE_URL: ${{ inputs.localTesting && 'http://localhost:3000' || 'https://browserstackce.github.io/features-demo-web' }} BROWSERSTACK_LOCAL: ${{ inputs.localTesting }} + PERCY_BRANCH: master VISUAL_DIFF: "0" - name: Percy with visual diffs (diff on) run: npm run test:visual-regression @@ -58,3 +59,4 @@ jobs: BASE_URL: ${{ inputs.localTesting && 'http://localhost:3000' || 'https://browserstackce.github.io/features-demo-web' }} BROWSERSTACK_LOCAL: ${{ inputs.localTesting }} VISUAL_DIFF: "1" + PERCY_BRANCH: diff-on