Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Bjarke Berg
2021-03-23 06:50:57 +01:00
parent b84e3e3bbc
commit df43f91396

View File

@@ -169,7 +169,7 @@ stages:
workingDir: 'src\Umbraco.Tests.AcceptanceTest'
- task: Npm@1
displayName: Run Cypress (Desktop)
condition: eq(PrepareTask.result,'Succeeded')
condition: always()
inputs:
workingDir: src\Umbraco.Tests.AcceptanceTest
command: 'custom'
@@ -177,7 +177,7 @@ stages:
- task: Npm@1
displayName: Run Cypress (Tablet portrait)
condition: eq(PrepareTask.result,'Succeeded')
condition: always()
inputs:
workingDir: src\Umbraco.Tests.AcceptanceTest
command: 'custom'
@@ -185,14 +185,14 @@ stages:
- task: Npm@1
displayName: Run Cypress (Mobile protrait)
condition: eq(PrepareTask.result,'Succeeded')
condition: always()
inputs:
workingDir: src\Umbraco.Tests.AcceptanceTest
command: 'custom'
customCommand: 'run test -- --config="viewportHeight=812,viewportWidth=375,screenshotsFolder=cypress/artifacts/mobile/screenshots,videosFolder=cypress/artifacts/mobile/videos,videoUploadOnPasses=false"'
- task: PublishPipelineArtifact@1
displayName: "Publish test artifacts"
condition: eq(PrepareTask.result,'Succeeded')
condition: always()
inputs:
targetPath: '$(Build.SourcesDirectory)/src/Umbraco.Tests.AcceptanceTest/cypress/artifacts'
artifact: 'Test artifacts'