-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcypress.config.ts
81 lines (79 loc) · 2.13 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import { defineConfig } from 'cypress'
export default defineConfig({
// https://docs.cypress.io/guides/references/configuration#Folders-Files
defaultCommandTimeout: 240000,
pageLoadTimeout: 120000,
responseTimeout: 240000,
requestTimeout: 240000,
viewportWidth: 1920,
viewportHeight: 1080,
fixturesFolder: './fixtures',
numTestsKeptInMemory: 1,
chromeWebSecurity: false,
screenshotsFolder: 'cypress/results/mochawesome-report/assets',
downloadsFolder: 'cypress/downloads',
env: {
NODE_ENV: 'production',
username: 'admin',
password: 'password1234',
mockPassword: "mockPassword",
baseUrl: 'https://online-server',
host: [{
name: 'harvester-node-1',
customName: '',
disks: [
{
name: '',
devPath: '',
},
],
witnessNode: false
}],
image: {
name: 'openSUSE-Leap-15.3-3-NET-x86_64.qcow2',
url: 'https://download.opensuse.org/pub/opensuse/distribution/leap/15.3/appliances/openSUSE-Leap-15.3-JeOS.x86_64-15.3-OpenStack-Cloud-Current.qcow2',
},
nfsEndPoint: 'nfs://ip',
vlans: [
{
nic: 'ens7',
vlan: 100,
},
{
nic: 'ens8',
vlan: 104
}
],
sshKey: 'ssh-rsa AAAAC3NzaC1lZDI1NTE5AAAAILNT75vavgc8gtphADJAhbUyj9TQRxLWJEXy5n+7HbIH username@email.com',
privateKeyPath: 'Your ssh private Key Path'
},
retries: {
runMode: 0,
openMode: 0,
},
reporter: 'mochawesome',
reporterOptions: {
reportDir: 'cypress/results',
overwrite: false,
html: false,
json: true,
},
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./plugins/index.js')(on, config)
},
specPattern: [
'./testcases/dashboard/*.spec.ts',
'./testcases/settings/*.spec.ts',
'./testcases/image/*.spec.ts',
'./testcases/networks/*.spec.ts',
'./testcases/**/*.spec.ts',
],
supportFile: './support/index.js',
baseUrl: 'https://192.168.0.131',
experimentalSessionAndOrigin: true,
video: false,
},
})