-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-e2e-appeals.yml
62 lines (53 loc) · 1.59 KB
/
azure-pipelines-e2e-appeals.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
parameters:
- name: Environment
type: string
default: 'test'
values:
- 'dev'
- 'test'
variables:
- name: APP
value: 'appeals'
- group: e2e-${{ parameters.Environment }}
# PR trigger disabled, until process has been agreed by team
pr: none
# pr:
# branches:
# include:
# - main
# paths:
# include:
# - appeals/e2e/cypress/e2e/back-office-appeals
trigger: none
jobs:
- job: Run_Cypress_Tests_For_Appeals
pool: pins-odt-agent-pool-tests
steps:
- task: ShellScript@2
inputs:
scriptPath: 'appeals/e2e/install-chromium.sh'
displayName: 'Install Chromium'
condition: eq(variables['agent.os'], 'Linux')
- task: Npm@1
inputs:
command: "install"
workingDir: $(System.DefaultWorkingDirectory)/appeals/e2e
displayName: "Install Dependencies"
- task: ShellScript@2
inputs:
scriptPath: 'appeals/e2e/run-tests.sh'
env:
BASE_URL: $(APPEALS_BASE_URL)
CASE_TEAM_EMAIL: $(CASE_TEAM_APPEALS_EMAIL)
CASE_ADMIN_EMAIL: $(CASE_ADMIN_APPEALS_EMAIL)
INSPECTOR_EMAIL: $(INSPECTOR_APPEALS_EMAIL)
VALIDATION_OFFICER_EMAIL: $(VALIDATION_OFFICER_EMAIL)
USER_PASSWORD: $(USER_PASSWORD)
HAPPY_PATH_EMAIL: $(HAPPY_PATH_EMAIL)
displayName: "Run Cypress Tests"
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: 'appeals/e2e/cypress/screenshots'
artifactName: 'FailedTests'
displayName: "Publish Failed Tests Artifacts"
condition: failed()