mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
c86509d1be
Might help in some edge cases where elements need just a bit longer to load and be available. Bug: T360026 Change-Id: I60176435963c708d13ce7fd3e0691cb6e7a35fb1
26 lines
724 B
JavaScript
26 lines
724 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,
|
|
defaultCommandTimeout: 5000, // ms; default is 4000ms
|
|
|
|
screenshotsFolder: envLogDir || 'cypress/screenshots',
|
|
video: true,
|
|
videosFolder: envLogDir || 'cypress/videos',
|
|
downloadsFolder: envLogDir || 'cypress/downloads'
|
|
} );
|