generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cypress.config.ts
40 lines (39 loc) · 1.22 KB
/
cypress.config.ts
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
import { defineConfig } from 'cypress'
export default defineConfig({
chromeWebSecurity: false,
fixturesFolder: 'cypress/fixtures',
screenshotsFolder: 'cypress/screenshots',
videosFolder: 'cypress/videos',
reporter: 'cypress-multi-reporters',
reporterOptions: {
configFile: 'reporter-config.json',
},
taskTimeout: 60000,
env: {
CLIENT_ID: 'hmpps-assess-risks-and-needs-oastub-ui',
CLIENT_SECRET: 'clientsecret',
HMPPS_AUTH_URL: 'http://localhost:9091',
SBNA_API_URL: 'http://localhost:8080',
COORDINATOR_API_URL: 'http://localhost:8070',
ARNS_HANDOVER_URL: 'http://localhost:7070',
ARNS_HANDOVER_CLIENT_ID: 'strengths-and-needs-assessment',
OASYS_UI_URL: 'http://localhost:7072',
},
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
specPattern: ['cypress/e2e/**/*.cy.ts', 'cypress/e2e/**/*.fixture.ts'],
supportFile: 'cypress/support/index.ts',
testIsolation: true,
setupNodeEvents(on, config) {
on('task', {
table(message) {
// eslint-disable-next-line no-console
console.table(message)
return null
},
})
return config
},
},
})