diff --git a/azure-pipelines-automated-testing.yml b/azure-pipelines-automated-testing.yml index a1de83de3..f43fe6d0c 100644 --- a/azure-pipelines-automated-testing.yml +++ b/azure-pipelines-automated-testing.yml @@ -35,7 +35,7 @@ stages: totalShards: 2 targetUrl: $(BASE_URL) dockerFileName: 'Dockerfile.playwright' - isRegression: false + isRegression: true filterTags: '' playwrightTestsPath: 'playwright-tests' npmServePath: '.' diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3867fdcd6..6acbc0e6a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -59,6 +59,22 @@ stages: npmLocation: $(Build.SourcesDirectory) testResultsFile: junit.xml summaryFileLocation: $(Build.SourcesDirectory)/coverage/cobertura-coverage.xml + - stage: TestPrPlaywright + displayName: Run Playwright Tests For PullRequest + jobs: + - template: temp/playwright-test.yml + parameters: + totalShards: 4 + targetUrl: $(BASE_URL) + dockerFileName: 'Dockerfile.playwright' + isRegression: false + filterTags: '' + playwrightTestsPath: 'playwright-tests' + npmServePath: '.' + npmrcPath: 'playwright-tests/.npmrc' + secrets: + CCIS_API_AUTH: $(CCIS_API_AUTH) + JIRA_API_KEY: $(JIRA_API_KEY) - ${{ else }}: # Dev Build/Deploy - stage: Dev diff --git a/temp/playwright-test.yml b/temp/playwright-test.yml index ac38941a1..7510834ad 100644 --- a/temp/playwright-test.yml +++ b/temp/playwright-test.yml @@ -240,7 +240,7 @@ jobs: arguments: '--no-cache --pull' - bash: | printenv > "${{ parameters.envFileName }}" - branch_name=$(System.PullRequest.SourceBranch) + branch_name=$(Build.SourceBranch) # TODO: Change back to PullRequest.SourceBranch echo "Retrieved branch name: '$branch_name'" JIRA_CARD_NUMBER="${branch_name##*/}" echo "Extracted JIRA Card number: '$JIRA_CARD_NUMBER'"