2023-03-11 12:40:22 +00:00
|
|
|
const { defineConfig } = require('cypress');
|
2023-03-20 08:51:42 +00:00
|
|
|
const setupPlugins = require('./tests/System/plugins/index');
|
2022-08-24 19:30:50 +00:00
|
|
|
|
|
|
|
module.exports = defineConfig({
|
2023-03-20 08:51:42 +00:00
|
|
|
fixturesFolder: 'tests/System/fixtures',
|
|
|
|
videosFolder: 'tests/System/output/videos',
|
|
|
|
screenshotsFolder: 'tests/System/output/screenshots',
|
2022-08-24 19:30:50 +00:00
|
|
|
viewportHeight: 1000,
|
|
|
|
viewportWidth: 1200,
|
|
|
|
e2e: {
|
2023-03-11 12:40:22 +00:00
|
|
|
setupNodeEvents(on, config) {
|
2023-03-13 13:57:17 +00:00
|
|
|
setupPlugins(on, config);
|
2023-03-11 12:40:22 +00:00
|
|
|
},
|
2022-08-24 19:30:50 +00:00
|
|
|
baseUrl: 'http://localhost/',
|
2022-09-11 13:26:26 +00:00
|
|
|
specPattern: [
|
2023-03-20 08:51:42 +00:00
|
|
|
'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}',
|
2023-03-22 13:47:56 +00:00
|
|
|
'tests/System/integration/plugins/**/*.cy.{js,jsx,ts,tsx}',
|
2022-09-11 13:26:26 +00:00
|
|
|
],
|
2023-03-20 08:51:42 +00:00
|
|
|
supportFile: 'tests/System/support/index.js',
|
2022-08-24 19:30:50 +00:00
|
|
|
scrollBehavior: 'center',
|
|
|
|
browser: 'firefox',
|
|
|
|
screenshotOnRunFailure: true,
|
2023-03-20 08:51:42 +00:00
|
|
|
video: false,
|
2022-08-24 19:30:50 +00:00
|
|
|
},
|
|
|
|
env: {
|
|
|
|
sitename: 'Joomla CMS Test',
|
|
|
|
name: 'jane doe',
|
|
|
|
email: 'admin@example.com',
|
|
|
|
username: 'ci-admin',
|
|
|
|
password: 'joomla-17082005',
|
|
|
|
db_type: 'MySQLi',
|
|
|
|
db_host: 'localhost',
|
2023-06-14 14:18:18 +00:00
|
|
|
db_port: '',
|
2022-08-24 19:30:50 +00:00
|
|
|
db_name: 'test_joomla',
|
|
|
|
db_user: 'root',
|
|
|
|
db_password: '',
|
2023-03-20 08:51:42 +00:00
|
|
|
db_prefix: 'jos_',
|
2023-05-15 12:31:39 +00:00
|
|
|
smtp_host: 'localhost',
|
|
|
|
smtp_port: '1025',
|
2023-03-20 08:51:42 +00:00
|
|
|
cmsPath: '.',
|
2022-08-24 19:30:50 +00:00
|
|
|
},
|
2023-03-20 08:51:42 +00:00
|
|
|
});
|