- 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.
26 lines
609 B
JavaScript
26 lines
609 B
JavaScript
define(function (require) {
|
|
require('intern/dojo/node!../support/env_setup');
|
|
|
|
const bdd = require('intern!bdd');
|
|
const intern = require('intern');
|
|
const initCallbacks = [];
|
|
|
|
function onInit(callback) {
|
|
initCallbacks.push(callback);
|
|
}
|
|
|
|
global.__kibana__intern__ = { intern, bdd, onInit };
|
|
|
|
bdd.describe('Kibana visual regressions', function () {
|
|
bdd.before(function () {
|
|
initCallbacks.forEach(callback => {
|
|
callback.call(this);
|
|
});
|
|
});
|
|
|
|
require([
|
|
'intern/dojo/node!../support/index',
|
|
'intern/dojo/node!./home',
|
|
], function () {});
|
|
});
|
|
});
|