cms/cypress.config.dist.js

46 lines
1.3 KiB
JavaScript

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: 'admin@example.com',
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: '.',
},
});