Merge pull request #2787 from Safelite/feature/pr-pipeline-fix
Reorganizes pipeline test stages to run playwright asyncronously with the unit tests
This commit is contained in:
commit
a3d31e4d31
3 changed files with 7 additions and 12 deletions
|
|
@ -51,16 +51,7 @@ stages:
|
|||
displayName: Run Prettier check
|
||||
|
||||
- stage: TestPr
|
||||
displayName: Run Unit Tests For PullRequest
|
||||
jobs:
|
||||
- template: templates/digital/vue-jest-run-unit-tests.yml@AzureDevOps
|
||||
parameters:
|
||||
nodeContainer: node
|
||||
npmLocation: $(Build.SourcesDirectory)
|
||||
testResultsFile: junit.xml
|
||||
summaryFileLocation: $(Build.SourcesDirectory)/coverage/cobertura-coverage.xml
|
||||
- stage: TestPrPlaywright
|
||||
displayName: Run Playwright Tests For PullRequest
|
||||
displayName: Run Tests For PullRequest
|
||||
jobs:
|
||||
- template: temp/playwright-test.yml
|
||||
parameters:
|
||||
|
|
@ -76,6 +67,12 @@ stages:
|
|||
secrets:
|
||||
CCIS_API_AUTH: $(CCIS_API_AUTH)
|
||||
JIRA_API_KEY: $(JIRA_API_KEY)
|
||||
- template: templates/digital/vue-jest-run-unit-tests.yml@AzureDevOps
|
||||
parameters:
|
||||
nodeContainer: node
|
||||
npmLocation: $(Build.SourcesDirectory)
|
||||
testResultsFile: junit.xml
|
||||
summaryFileLocation: $(Build.SourcesDirectory)/coverage/cobertura-coverage.xml
|
||||
- ${{ else }}:
|
||||
# Dev Build/Deploy
|
||||
- stage: Dev
|
||||
|
|
|
|||
|
|
@ -260,7 +260,6 @@ ADMIN_SERVICE_API_URL= <br>
|
|||
SAUCE_USERNAME= <br>
|
||||
SAUCE_ACCESS_KEY= <br>
|
||||
|
||||
|
||||
## CI/CD Integration
|
||||
The project uses Azure Pipelines for continuous integration with configurations defined in azure-pipelines.yml.
|
||||
|
||||
|
|
|
|||
|
|
@ -291,7 +291,6 @@ async function runWorkflow(page: Page, testCase: TestCase) {
|
|||
// let serviceLocationPage = testCase.pages.serviceLocationPage;
|
||||
// await serviceLocationPage.handleServiceLocationPage(testCase.testData);
|
||||
|
||||
|
||||
// Schedule appointment
|
||||
let schedulePage = testCase.pages.schedulePage;
|
||||
await schedulePage.handleSchedulePage(testCase.testData);
|
||||
|
|
|
|||
Loading…
Reference in a new issue