forked from pkp/ops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.js
48 lines (47 loc) · 1.57 KB
/
cypress.config.js
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
const { defineConfig } = require('cypress')
module.exports = defineConfig({
env: {
contextTitles: {
en: 'Public Knowledge Preprint Server',
fr_CA: 'Serveur de prépublication de la connaissance du public',
},
contextDescriptions: {
en:
'The Public Knowledge Preprint Server is a preprint service on the subject of public access to science.',
fr_CA:
"Le Serveur de prépublication de la connaissance du public est une service trimestrielle évaluée par les pairs sur le thème de l'accès du public à la science.",
},
contextAcronyms: {
en: 'PKP',
},
defaultGenre: 'Preprint Text',
authorUserGroupId: 4,
dataAvailabilityTest: {
submission: {
title: 'The influence of lactation on the quantity and quality of cashmere production',
authorFamilyName: 'Corino'
},
anonymousReviewer: false,
anonymousDisclosedReviewer: false
}
},
watchForFileChanges: false,
defaultCommandTimeout: 500000,
video: false,
numTestsKeptInMemory: 0,
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('./lib/pkp/cypress/plugins/index.js')(on, config)
},
specPattern: [
'cypress/tests/data/**/*.cy.{js,jsx,ts,tsx}',
'cypress/tests/integration/**/*.cy.{js,jsx,ts,tsx}',
'lib/pkp/cypress/tests/**/*.cy.{js,jsx,ts,tsx}',
],
experimentalRunAllSpecs: true,
},
// Allow cypress to interact with iframes
chromeWebSecurity: false
})