mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
d2a244b753
Bug: T358851 Change-Id: I084f4e098c00d4c1bbcb0e692a2be3b1f8ce59a2
24 lines
779 B
JavaScript
24 lines
779 B
JavaScript
/* eslint-env node */
|
|
const { defineConfig } = require( 'cypress' );
|
|
// const { mwApiCommands } = require( './tests/cypress/support/MwApiPlugin.js' );
|
|
|
|
const envLogDir = process.env.LOG_DIR ? process.env.LOG_DIR + '/Cite' : null;
|
|
|
|
module.exports = defineConfig( {
|
|
e2e: {
|
|
supportFile: false,
|
|
specPattern: 'tests/cypress/e2e/**/*.cy.js',
|
|
baseUrl: process.env.MW_SERVER + process.env.MW_SCRIPT_PATH,
|
|
mediawikiAdminUsername: process.env.MEDIAWIKI_USER,
|
|
mediawikiAdminPassword: process.env.MEDIAWIKI_PASSWORD
|
|
},
|
|
|
|
retries: 2,
|
|
defaultCommandTimeout: 5000, // ms; default is 4000ms
|
|
|
|
screenshotsFolder: envLogDir || 'tests/cypress/screenshots',
|
|
video: true,
|
|
videosFolder: envLogDir || 'tests/cypress/videos',
|
|
downloadsFolder: envLogDir || 'tests/cypress/downloads'
|
|
} );
|