forked from pkp/omp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.js
50 lines (49 loc) · 1.51 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
49
50
const { defineConfig } = require('cypress')
module.exports = defineConfig({
env: {
contextTitles: {
en: 'Public Knowledge Press',
fr_CA: 'Press de la connaissance du public',
},
contextDescriptions: {
en:
'Public Knowledge Press is a publisher dedicated to the subject of public access to science.',
fr_CA:
"Le Press de Public Knowledge est une presse sur le thème de l'accès du public à la science.",
},
contextAcronyms: {
en: 'PKP',
},
defaultGenre: 'Book Manuscript',
authorUserGroupId: 13,
volumeEditorUserGroupId: 14,
dataAvailabilityTest: {
submission: {
title: 'The West and Beyond: New Perspectives on an Imagined Region',
authorFamilyName: 'Finkel'
},
anonymousReviewer: 'gfavio',
anonymousDisclosedReviewer: 'alzacharia'
}
},
watchForFileChanges: false,
defaultCommandTimeout: 10000,
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}',
],
redirectionLimit: 1000,
experimentalRunAllSpecs: true,
},
// Allow cypress to interact with iframes
chromeWebSecurity: false
})