- Add test:visualRegression npm script. - Split up test:visualRegression grunt task into takeScreenshots and buildGallery subtasks. - Add intern_visual_regression.js test file. - Rename api_itern.js -> intern_api.js for consistency. - Refactor delayed exports logic for readability. - Refactor common.js page object to use ES2015 Class.
24 lines
715 B
JavaScript
24 lines
715 B
JavaScript
define(function (require) {
|
|
const serverConfig = require('intern/dojo/node!./server_config');
|
|
return Object.assign({
|
|
debug: true,
|
|
capabilities: {
|
|
'selenium-version': '2.53.0',
|
|
// must match URL in tasks/config/downloadSelenium.js
|
|
'idle-timeout': 99
|
|
},
|
|
environments: [{
|
|
browserName: 'chrome'
|
|
}],
|
|
tunnelOptions: serverConfig.servers.webdriver,
|
|
functionalSuites: [
|
|
'test/visual_regression/index'
|
|
],
|
|
|
|
excludeInstrumentation: /.*/,
|
|
|
|
defaultTimeout: 90000,
|
|
defaultTryTimeout: 40000, // tryForTime could include multiple 'find timeouts'
|
|
defaultFindTimeout: 10000 // this is how long we try to find elements on page
|
|
}, serverConfig);
|
|
});
|