2023-05-15 20:28:55 +00:00
|
|
|
const { defineConfig } = require('cypress')
|
|
|
|
|
|
|
|
module.exports = defineConfig({
|
|
|
|
fixturesFolder: 'tests/cypress/fixtures',
|
|
|
|
videosFolder: 'tests/cypress/output/videos',
|
|
|
|
screenshotsFolder: 'tests/cypress/output/screenshots',
|
|
|
|
viewportHeight: 1000,
|
|
|
|
viewportWidth: 1200,
|
|
|
|
e2e: {
|
|
|
|
setupNodeEvents(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}'
|
|
|
|
],
|
|
|
|
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: 'MySQLi',
|
|
|
|
db_host: 'localhost',
|
|
|
|
db_name: 'test_joomla',
|
|
|
|
db_user: 'root',
|
2023-05-18 15:44:56 +00:00
|
|
|
db_password: 'joomla_ut',
|
2023-05-15 20:28:55 +00:00
|
|
|
db_prefix: 'jos_',
|
|
|
|
},
|
|
|
|
})
|