mirror of
https://github.com/grafana/grafana.git
synced 2025-09-20 20:54:29 +08:00

* Minor changes * Remove console.* logger plugin ... as it doesn't work in Electron * Only open/close panel editor options and groups when state is inverted ... meaning, only open when closed and only close when open. This avoids unpredictable states, causing inconsistent results. * Support for adding multiple datasources and dashboards ... and having them all auto-removed when tests are completed * Avoid page errors when removing dashboards and datasources [keep?] * Wait for chart data before saving panel ... so that everything is ready when returning to the dashboard
20 lines
713 B
JavaScript
20 lines
713 B
JavaScript
const compareScreenshots = require('./compareScreenshots');
|
|
const extendConfig = require('./extendConfig');
|
|
const readProvisions = require('./readProvisions');
|
|
const typescriptPreprocessor = require('./typescriptPreprocessor');
|
|
|
|
module.exports = (on, config) => {
|
|
on('file:preprocessor', typescriptPreprocessor);
|
|
on('task', { compareScreenshots, readProvisions });
|
|
on('task', {
|
|
log({ message, optional }) {
|
|
optional ? console.log(message, optional) : console.log(message);
|
|
return null;
|
|
},
|
|
});
|
|
|
|
// Always extend with this library's config and return for diffing
|
|
// @todo remove this when possible: https://github.com/cypress-io/cypress/issues/5674
|
|
return extendConfig(config);
|
|
};
|