DigitalConsumer.FixMyGlass/azure-pipelines-automated-testing.yml
maguire-arman 44541ba00c Refactors automated testing pipelines with template
Migrates automated testing configurations to new pipeline structure.

This change streamlines the test execution process by leveraging templates and parameters for increased flexibility and maintainability. It introduces a dedicated template for Playwright tests, enabling easier configuration and reuse across different testing scenarios.

The previous monolithic pipelines are replaced with modular components, improving readability and reducing redundancy. This also allows for better control over test execution, including shard management and result aggregation.
2025-07-09 13:40:52 -04:00

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: false
filterTags: ''
playwrightTestsPath: 'playwright-tests'
npmServePath: '.'
npmrcPath: 'playwright-tests/.npmrc'
secrets:
CCIS_API_AUTH: $(CCIS_API_AUTH)
JIRA_API_KEY: $(JIRA_API_KEY)