DigitalConsumer.FixMyGlass/azure-pipelines-automated-testing.yml
maguire-arman 9c643ba48c Enhances Playwright test workflow
Adds support for different application types (Vue and .NET) and improves server readiness checks.

This change introduces a new `applicationType` parameter to the Playwright test template, allowing it to handle both Vue and .NET applications. It improves the reliability of the test execution by implementing a readiness check mechanism that waits for the server to be fully up and running before starting the tests. This ensures that the tests are not run against an unavailable server, which can lead to false negatives.

The changes include:
- Parameterization of application type (vue or dotnet)
- Server readiness check implementation
- Docker build arguments can now be passed through
2025-07-29 12:45:00 -04:00

47 lines
No EOL
1.2 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'
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:
# TODO: Change to ADO Playwright template
- template: temp/playwright-test.yml
parameters:
applicationType: 'vue'
totalShards: ${{ variables.totalShards }}
targetUrl: $(BASE_URL)
dockerFileName: 'Dockerfile.playwright'
isRegression: ${{ variables.IS_REGRESSION }}
filterTags: ''
playwrightTestsPath: 'playwright-tests'
npmServePath: '.'
npmrcPath: 'playwright-tests/.npmrc'
secrets:
CCIS_API_AUTH: $(CCIS_API_AUTH)
JIRA_API_KEY: $(JIRA_API_KEY)