-
Notifications
You must be signed in to change notification settings - Fork 3
/
cypress.config.ts
32 lines (31 loc) · 1.08 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
import { defineConfig } from 'cypress';
export default defineConfig({
projectId: 'urjhz2',
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: 0,
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,
experimentalStudio: true,
requestTimeout: 20000,
},
});