mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 06:13:54 +00:00
selenium: Update WebdriverIO configuration file
Target by default MediaWiki-Docker instead of obsolete MediaWiki-Vagrant. Take screenshots of all tests, not just failed ones. It was recently updated in core. See 2320f00. Remove `Screenshot location...` messages. It was also recently changed in core. See d0762b5. Bug: T280975 Change-Id: I194aabfb1282c348fd4df3223e0a911cb38ec6e3
This commit is contained in:
parent
5a3925dfde
commit
7488d97256
|
@ -29,10 +29,10 @@ exports.config = {
|
||||||
|
|
||||||
// Wiki admin
|
// Wiki admin
|
||||||
mwUser: process.env.MEDIAWIKI_USER || 'Admin',
|
mwUser: process.env.MEDIAWIKI_USER || 'Admin',
|
||||||
mwPwd: process.env.MEDIAWIKI_PASSWORD || 'vagrant',
|
mwPwd: process.env.MEDIAWIKI_PASSWORD || 'dockerpass',
|
||||||
|
|
||||||
// Base for browser.url() and Page#openTitle()
|
// Base for browser.url() and Page#openTitle()
|
||||||
baseUrl: ( process.env.MW_SERVER || 'http://127.0.0.1:8080' ) + (
|
baseUrl: ( process.env.MW_SERVER || 'http://localhost:8080' ) + (
|
||||||
process.env.MW_SCRIPT_PATH || '/w'
|
process.env.MW_SCRIPT_PATH || '/w'
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -148,14 +148,9 @@ exports.config = {
|
||||||
ffmpeg.kill( 'SIGINT' );
|
ffmpeg.kill( 'SIGINT' );
|
||||||
}
|
}
|
||||||
|
|
||||||
// if test passed, ignore, else take and save screenshot
|
|
||||||
if ( test.passed ) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// save screenshot
|
// save screenshot
|
||||||
const screenshotfile = filePath( test, logPath, 'png' );
|
const screenshotfile = filePath( test, logPath, 'png' );
|
||||||
browser.saveScreenshot( screenshotfile );
|
browser.saveScreenshot( screenshotfile );
|
||||||
console.log( '\n\tScreenshot location:', screenshotfile, '\n' );
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue