-
-
Notifications
You must be signed in to change notification settings - Fork 99
/
cypress.config.ts
30 lines (29 loc) · 1.03 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
import { defineConfig } from 'cypress';
export default defineConfig({
video: false,
fixturesFolder: 'src/test/javascript/cypress/fixtures',
screenshotsFolder: 'target/cypress/screenshots',
downloadsFolder: 'target/cypress/downloads',
videosFolder: 'target/cypress/videos',
chromeWebSecurity: true,
viewportWidth: 1200,
viewportHeight: 720,
retries: 2,
scrollBehavior: 'center',
env: {
authenticationUrl: '/api/authenticate',
jwtStorageName: 'jhi-authenticationToken',
},
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
async setupNodeEvents(on, config) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return (await import('./src/test/javascript/cypress/plugins/index')).default(on, config);
},
baseUrl: 'http://localhost:8080/',
specPattern: 'src/test/javascript/cypress/e2e/**/*.cy.ts',
supportFile: 'src/test/javascript/cypress/support/index.ts',
experimentalRunAllSpecs: true,
},
});