2023-12-19 13:36:26 +00:00
|
|
|
/* eslint-env node */
|
|
|
|
const { defineConfig } = require( 'cypress' );
|
2024-04-03 10:16:21 +00:00
|
|
|
// const { mwApiCommands } = require( './tests/cypress/support/MwApiPlugin.js' );
|
2023-12-19 13:36:26 +00:00
|
|
|
|
|
|
|
const envLogDir = process.env.LOG_DIR ? process.env.LOG_DIR + '/Cite' : null;
|
|
|
|
|
|
|
|
module.exports = defineConfig( {
|
|
|
|
e2e: {
|
|
|
|
supportFile: false,
|
2024-04-03 10:16:21 +00:00
|
|
|
specPattern: 'tests/cypress/e2e/**/*.cy.js',
|
2023-12-19 13:36:26 +00:00
|
|
|
baseUrl: process.env.MW_SERVER + process.env.MW_SCRIPT_PATH,
|
|
|
|
mediawikiAdminUsername: process.env.MEDIAWIKI_USER,
|
|
|
|
mediawikiAdminPassword: process.env.MEDIAWIKI_PASSWORD
|
|
|
|
},
|
|
|
|
|
|
|
|
retries: 2,
|
2024-03-14 13:31:02 +00:00
|
|
|
defaultCommandTimeout: 5000, // ms; default is 4000ms
|
2023-12-19 13:36:26 +00:00
|
|
|
|
2024-04-03 10:16:21 +00:00
|
|
|
screenshotsFolder: envLogDir || 'tests/cypress/screenshots',
|
2023-12-19 13:36:26 +00:00
|
|
|
video: true,
|
2024-04-03 10:16:21 +00:00
|
|
|
videosFolder: envLogDir || 'tests/cypress/videos',
|
|
|
|
downloadsFolder: envLogDir || 'tests/cypress/downloads'
|
2023-12-19 13:36:26 +00:00
|
|
|
} );
|