mediawiki-extensions-Cite/cypress.config.js
mareikeheuer 0f801ea550 Port Cite web test suite to Cypress
Steps to implement:

 Copy over and adapt setup files, to install Cypress in the Cite code base.
 Port tests/selenium/specs/backlinks.js and supporting file cite.page.js to run under the Cypress environment, in a second patchset.
 Run the new suite in CI, replacing the previous selenium integration.
 Delete the selenium test suite.

Bug: T353436
Change-Id: Ie76371e18d8612daa7c7be741432c6f3e0b783b5
2024-01-17 11:45:04 +01:00

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'
} );