mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 16:30:12 +00:00
25 lines
669 B
JavaScript
25 lines
669 B
JavaScript
|
'use strict';
|
||
|
|
||
|
/* eslint-env node */
|
||
|
const { defineConfig } = require( 'cypress' );
|
||
|
// const { mwApiCommands } = require( './cypress/support/MwApiPlugin.js' );
|
||
|
|
||
|
const envLogDir = process.env.LOG_DIR ? process.env.LOG_DIR + '/Cite' : null;
|
||
|
|
||
|
module.exports = defineConfig( {
|
||
|
e2e: {
|
||
|
supportFile: false,
|
||
|
baseUrl: process.env.MW_SERVER + process.env.MW_SCRIPT_PATH,
|
||
|
mediawikiAdminUsername: process.env.MEDIAWIKI_USER,
|
||
|
mediawikiAdminPassword: process.env.MEDIAWIKI_PASSWORD
|
||
|
|
||
|
},
|
||
|
|
||
|
retries: 2,
|
||
|
|
||
|
screenshotsFolder: envLogDir || 'cypress/screenshots',
|
||
|
video: true,
|
||
|
videosFolder: envLogDir || 'cypress/videos',
|
||
|
downloadsFolder: envLogDir || 'cypress/downloads'
|
||
|
} );
|