Add retries, fix two failing tests, and uncomment tablet & mobile tests
This commit is contained in:
@@ -174,29 +174,29 @@ stages:
|
||||
workingDir: src\Umbraco.Tests.AcceptanceTest
|
||||
command: 'custom'
|
||||
customCommand: 'run test -- --config="viewportHeight=1600,viewportWidth=2560,screenshotsFolder=cypress/artifacts/desktop/screenshots,videosFolder=cypress/artifacts/desktop/videos,videoUploadOnPasses=false"'
|
||||
|
||||
- task: Npm@1
|
||||
displayName: Run Cypress (Tablet portrait)
|
||||
condition: always()
|
||||
inputs:
|
||||
workingDir: src\Umbraco.Tests.AcceptanceTest
|
||||
command: 'custom'
|
||||
customCommand: 'run test -- --config="viewportHeight=1366,viewportWidth=1024,screenshotsFolder=cypress/artifacts/tablet/screenshots,videosFolder=cypress/artifacts/tablet/videos,videoUploadOnPasses=false"'
|
||||
|
||||
- task: Npm@1
|
||||
displayName: Run Cypress (Mobile protrait)
|
||||
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: Npm@1
|
||||
# displayName: Run Cypress (Tablet portrait)
|
||||
# condition: always()
|
||||
# inputs:
|
||||
# workingDir: src\Umbraco.Tests.AcceptanceTest
|
||||
# command: 'custom'
|
||||
# customCommand: 'run test -- --config="viewportHeight=1366,viewportWidth=1024,screenshotsFolder=cypress/artifacts/tablet/screenshots,videosFolder=cypress/artifacts/tablet/videos,videoUploadOnPasses=false"'
|
||||
#
|
||||
# - task: Npm@1
|
||||
# displayName: Run Cypress (Mobile protrait)
|
||||
# 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: always()
|
||||
inputs:
|
||||
targetPath: '$(Build.SourcesDirectory)/src/Umbraco.Tests.AcceptanceTest/cypress/artifacts'
|
||||
artifact: 'Test artifacts'
|
||||
|
||||
|
||||
- stage: Artifacts
|
||||
dependsOn: []
|
||||
jobs:
|
||||
|
||||
@@ -7,5 +7,9 @@
|
||||
"password": "<insert password in cypress.env.json>"
|
||||
},
|
||||
"supportFile": "cypress/support/index.ts",
|
||||
"videoUploadOnPasses" : false
|
||||
"videoUploadOnPasses" : false,
|
||||
"retries": {
|
||||
"runMode": 2,
|
||||
"openMode": 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ context('Languages', () => {
|
||||
});
|
||||
|
||||
it('Add language', () => {
|
||||
const name = "Afrikaans"; // Must be an option in the select box
|
||||
const name = "afrikaans"; // Must be an option in the select box
|
||||
|
||||
cy.umbracoEnsureLanguageNameNotExists(name);
|
||||
|
||||
|
||||
@@ -23,6 +23,9 @@ context('Templates', () => {
|
||||
cy.umbracoEnsureTemplateNameNotExists(name);
|
||||
|
||||
createTemplate();
|
||||
// We have to wait for the ace editor to load, because when the editor is loading it will "steal" the focus briefly,
|
||||
// which causes the save event to fire if we've added something to the header field, causing errors.
|
||||
cy.wait(500);
|
||||
//Type name
|
||||
cy.umbracoEditorHeaderName(name);
|
||||
// Save
|
||||
|
||||
Reference in New Issue
Block a user