mediawiki-skins-MinervaNeue/tests/selenium/config/wdio.conf.js
Jan Drewniak 6bd240389e Adding "diff.feature" selenium test
Bug: T219920
Change-Id: I34b5301a274fe90a7a2db58a8bec2b9398d998b6
2019-04-10 23:15:37 +00:00

31 lines
1 KiB
JavaScript

/**
* Extending the Mediawiki core webdriver config
*/
const path = require( 'path' ),
coreConfig = require( '../../../../../tests/selenium/wdio.conf' ),
relPath = ( foo ) => path.resolve( __dirname, '../..', foo ),
MinervaConfig = Object.assign( coreConfig.config, {
services: [],
specs: [
relPath( './selenium/features/*.feature' )
],
cucumberOpts: {
tagsInTitle: true,
timeout: 20000, // 20 seconds
require: [
relPath( './selenium/features/support/world.js' ),
relPath( './selenium/features/support/hooks.js' ),
relPath( './selenium/features/step_definitions/create_page_api_steps.js' ),
relPath( './selenium/features/step_definitions/common_steps.js' ),
relPath( './selenium/features/step_definitions/category_steps.js' ),
relPath( './selenium/features/step_definitions/editor_steps.js' ),
relPath( './selenium/features/step_definitions/diff_steps.js' ),
relPath( './selenium/features/step_definitions/special_history_steps.js' )
]
},
framework: 'cucumber'
} );
exports.config = MinervaConfig;