-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathcypress.config.dist.js
41 lines (40 loc) · 1.37 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
import { defineConfig } from 'cypress';
import setupPlugins from './tests/cypress/plugins/index.mjs';
export default defineConfig({
fixturesFolder: 'tests/cypress/fixtures',
videosFolder: 'tests/cypress/output/videos',
screenshotsFolder: 'tests/cypress/output/screenshots',
viewportHeight: 1000,
viewportWidth: 1200,
e2e: {
setupNodeEvents(on, config) {
setupPlugins(on, config);
},
baseUrl: 'http://localhost/',
specPattern: [
'tests/cypress/integration/install/*.cy.{js,jsx,ts,tsx}',
'tests/cypress/integration/administrator/**/*.cy.{js,jsx,ts,tsx}',
'tests/cypress/integration/site/**/*.cy.{js,jsx,ts,tsx}',
'tests/cypress/integration/plugins/**/*.cy.{js,jsx,ts,tsx}',
],
supportFile: 'tests/cypress/support/index.js',
scrollBehavior: 'center',
browser: 'firefox',
screenshotOnRunFailure: true,
video: false
},
env: {
sitename: 'Joomla CMS Test',
name: 'jane doe',
email: 'admin@example.com',
username: 'ci-admin',
password: 'joomla-17082005',
db_type: process.env.DB_TYPE || 'MySQLi',
db_host: process.env.DB_HOST || 'mysql',
db_port: process.env.DB_PORT || '',
db_name: process.env.DB_NAME || 'test_joomla',
db_user: process.env.DB_USER || 'joomla_ut',
db_password: process.env.DB_PASSWORD || 'joomla_ut',
db_prefix: process.env.DB_PREFIX || 'mysql_',
},
})