Introduces a new stage in the pipeline to run Playwright tests specifically for pull requests. This ensures that UI tests are executed and pass before merging pull requests, preventing regressions. The automated testing is now configured to run regression tests. Uses the source branch from the build context to extract the JIRA card number.
45 lines
No EOL
1.1 KiB
YAML
45 lines
No EOL
1.1 KiB
YAML
trigger: none
|
|
schedules:
|
|
- cron: 0 9 * * MON-FRI
|
|
always: true
|
|
displayName: Daily Test Automation Run for FMG-NextGen
|
|
branches:
|
|
include:
|
|
- develop
|
|
pool: 'Default'
|
|
# TODO: CHange vue distro to test
|
|
variables:
|
|
# - group: Digital-Infrastructure
|
|
# - group: FMG-BuildBranches
|
|
- name: dockerImageName
|
|
value: 'playwright-tests'
|
|
- name: imageTag
|
|
value: '$(Build.BuildId)'
|
|
- name: totalShards
|
|
value: 4
|
|
- name: IS_REGRESSION
|
|
value: 'true'
|
|
- name: JIRA_BOARD_ID
|
|
value: '845'
|
|
- name: JIRA_EPIC_KEY
|
|
value: 'CASH-208'
|
|
- name: JIRA_PROJECT_KEY
|
|
value: 'CASH'
|
|
|
|
stages:
|
|
- stage: TestPr
|
|
displayName: Run Playwright Test
|
|
jobs:
|
|
- template: temp/playwright-test.yml
|
|
parameters:
|
|
totalShards: 2
|
|
targetUrl: $(BASE_URL)
|
|
dockerFileName: 'Dockerfile.playwright'
|
|
isRegression: true
|
|
filterTags: ''
|
|
playwrightTestsPath: 'playwright-tests'
|
|
npmServePath: '.'
|
|
npmrcPath: 'playwright-tests/.npmrc'
|
|
secrets:
|
|
CCIS_API_AUTH: $(CCIS_API_AUTH)
|
|
JIRA_API_KEY: $(JIRA_API_KEY) |