Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .tools/config/configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ class JConfig {
public $smtpauth = '0';
public $smtpuser = '';
public $smtppass = '';
public $smtphost = 'cypress'; // the service label of the cypress container in docker-compose.yml
public $smtphost = 'maildev'; // the service label of the maildev container in docker-compose.yml
public $smtpsecure = 'none';
public $smtpport = '1035';
public $smtpport = '1025';
public $caching = '0';
public $cache_handler = 'file';
public $cachetime = '15';
Expand Down
64 changes: 64 additions & 0 deletions .tools/config/cypress.config.dist.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
const { defineConfig } = require('cypress');
const setupPlugins = require('./System/plugins/index');

module.exports = defineConfig({
fixturesFolder: 'System/fixtures',
videosFolder: 'System/output/videos',
screenshotsFolder: 'System/output/screenshots',
viewportHeight: 1000,
viewportWidth: 1200,
e2e: {
setupNodeEvents(on, config) {
setupPlugins(on, config);
},
specPattern: [
// 'System/integration/install/**/*.cy.{js,jsx,ts,tsx}',
'System/integration/administrator/**/*.cy.{js,jsx,ts,tsx}',
// 'System/integration/site/**/*.cy.{js,jsx,ts,tsx}',
// 'System/integration/api/**/*.cy.{js,jsx,ts,tsx}',
'System/integration/plugins/**/*.cy.{js,jsx,ts,tsx}',
],
baseUrl: "{BASE_URL}",
supportFile: 'System/support/index.js',
scrollBehavior: 'center',
browser: 'firefox',
screenshotOnRunFailure: true,
video: false,
experimentalRunAllSpecs: true,
experimentalStudio: true,
experimentalMemoryManagement: true,
experimentalInteractiveRunEvents: true,
},
env: {
sitename: '{SITENAME}',
name: 'Admin',
email: '[email protected]',
username: '{JOOMLA_USERNAME}',
password: '{JOOMLA_PASSWORD}',
api_token: '{JOOMLA_TOKEN}',
db_type: 'MySQLi',
db_host: 'mysql',
db_name: '{DB_NAME}',
db_user: 'root',
db_password: 'root',
db_prefix: '{DB_PREFIX}',
smtp_host: 'maildev', // Alternative 'cypress',
smtp_port: '1025', // Alternative '1035',
cmsPath: '{SITE_PATH}',
MAILDEV_PROTOCOL: "http",
MAILDEV_HOST: "maildev",
MAILDEV_SMTP_PORT: "1025",
MAILDEV_API_PORT: "1080",
},
reporter: 'cypress-mochawesome-reporter',
reporterOptions: {
charts: true,
reportPageTitle: 'Joomla-Tests',
timestamp: 'yyyy-mm-dd_HH-MM',
embeddedScreenshots: true,
inlineAssets: true,
saveAllAttempts: false,
reportDir: 'System/output/reports',
overwrite: false,
}
});
8 changes: 6 additions & 2 deletions .tools/config/cypress.config.dist.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ export default defineConfig({
db_user: 'root',
db_password: 'root',
db_prefix: '{DB_PREFIX}',
smtp_host: 'cypress',
smtp_port: '1035',
smtp_host: 'maildev', // Alternative 'cypress',
smtp_port: '1025', // Alternative '1035',
cmsPath: '{SITE_PATH}',
MAILDEV_PROTOCOL: "http",
MAILDEV_HOST: "maildev",
MAILDEV_SMTP_PORT: "1025",
MAILDEV_API_PORT: "1080",
},
reporter: 'cypress-mochawesome-reporter',
reporterOptions: {
Expand Down
126 changes: 126 additions & 0 deletions .tools/config/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .tools/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"cypress:run": "cypress run"
},
"devDependencies": {
"cypress-maildev": "^1.3.2",
"cypress-mochawesome-reporter": "^3.8.2",
"cypress-on-fix": "^1.0.3",
"joomla-cypress": "^1.1.1",
Expand Down
Loading