forked from joomla/joomla-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cypress.config.dist.js
45 lines (44 loc) · 1.32 KB
/
cypress.config.dist.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
const { defineConfig } = require('cypress');
const setupPlugins = require('./tests/System/plugins/index');
module.exports = defineConfig({
fixturesFolder: 'tests/System/fixtures',
videosFolder: 'tests/System/output/videos',
screenshotsFolder: 'tests/System/output/screenshots',
viewportHeight: 1000,
viewportWidth: 1200,
e2e: {
setupNodeEvents(on, config) {
setupPlugins(on, config);
},
baseUrl: 'http://localhost/',
specPattern: [
'tests/System/integration/install/**/*.cy.{js,jsx,ts,tsx}',
'tests/System/integration/administrator/**/*.cy.{js,jsx,ts,tsx}',
'tests/System/integration/site/**/*.cy.{js,jsx,ts,tsx}',
'tests/System/integration/api/**/*.cy.{js,jsx,ts,tsx}',
'tests/System/integration/plugins/**/*.cy.{js,jsx,ts,tsx}',
],
supportFile: 'tests/System/support/index.js',
scrollBehavior: 'center',
browser: 'firefox',
screenshotOnRunFailure: true,
video: false,
},
env: {
sitename: 'Joomla CMS Test',
name: 'jane doe',
email: '[email protected]',
username: 'ci-admin',
password: 'joomla-17082005',
db_type: 'MySQLi',
db_host: 'localhost',
db_port: '',
db_name: 'test_joomla',
db_user: 'root',
db_password: '',
db_prefix: 'jos_',
smtp_host: 'localhost',
smtp_port: '1025',
cmsPath: '.',
},
});