// Patterns to exclude
exclude: [
relPath( './extensions/CirrusSearch/tests/selenium/specs/**/*.js' ),
+ // Disabled because these tests modify LocalSettings.php, see T199116 for the long-term fix.
+ relPath( './extensions/FileImporter/tests/selenium/specs/**/*.js' ),
// Disabled per T222517
relPath( './skins/MinervaNeue/tests/selenium/specs/**/*.js' )
],
beforeTest: function ( test ) {
if ( process.env.DISPLAY && process.env.DISPLAY.startsWith( ':' ) ) {
var logBuffer;
- let videoPath = filePath( test, logPath, 'mp4' );
+ const videoPath = filePath( test, logPath, 'mp4' );
const { spawn } = require( 'child_process' );
ffmpeg = spawn( 'ffmpeg', [
'-f', 'x11grab', // grab the X11 display
] );
logBuffer = function ( buffer, prefix ) {
- let lines = buffer.toString().trim().split( '\n' );
+ const lines = buffer.toString().trim().split( '\n' );
lines.forEach( function ( line ) {
console.log( prefix + line );
} );
return;
}
// save screenshot
- let screenshotfile = filePath( test, logPath, 'png' );
+ const screenshotfile = filePath( test, logPath, 'png' );
browser.saveScreenshot( screenshotfile );
console.log( '\n\tScreenshot location:', screenshotfile, '\n' );
}