milligram/backstop.config.js

139 lines
3.2 KiB
JavaScript
Raw Normal View History

2017-01-24 20:20:25 +00:00
'use strict'
module.exports = {
2020-05-15 04:20:35 +00:00
viewports: [
{
name: 'phone',
width: 320,
2020-05-18 23:19:02 +00:00
height: 480,
2020-05-15 04:20:35 +00:00
},
{
name: 'laptop',
width: 1280,
2020-05-18 23:19:02 +00:00
height: 800,
},
2020-05-15 04:20:35 +00:00
],
scenarios: [
{
label: 'Typography',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: [],
selectors: ['#typography .example'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
2020-05-18 23:19:02 +00:00
onBeforeScript: null,
2020-05-15 04:20:35 +00:00
},
{
label: 'Blockquotes',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: [],
selectors: ['#blockquotes .example'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
2020-05-18 23:19:02 +00:00
onBeforeScript: null,
2020-05-15 04:20:35 +00:00
},
{
label: 'Buttons',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: [],
selectors: ['#buttons .example'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
2020-05-18 23:19:02 +00:00
onBeforeScript: null,
2020-05-15 04:20:35 +00:00
},
{
label: 'Lists',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: [],
selectors: ['#lists .example'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
2020-05-18 23:19:02 +00:00
onBeforeScript: null,
2020-05-15 04:20:35 +00:00
},
{
label: 'Forms',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: [],
selectors: ['#forms .example'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
2020-05-18 23:19:02 +00:00
onBeforeScript: null,
2020-05-15 04:20:35 +00:00
},
{
label: 'Tables',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: [],
selectors: ['#tables .example'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
2020-05-18 23:19:02 +00:00
onBeforeScript: null,
2020-05-15 04:20:35 +00:00
},
{
label: 'Grids',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: [],
selectors: ['#grids .example'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
2020-05-18 23:19:02 +00:00
onBeforeScript: null,
2020-05-15 04:20:35 +00:00
},
{
2020-05-18 21:26:45 +00:00
label: 'Code',
2020-05-15 04:20:35 +00:00
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: [],
2020-05-18 21:26:45 +00:00
selectors: ['#code .example'],
2020-05-15 04:20:35 +00:00
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
2020-05-18 23:19:02 +00:00
onBeforeScript: null,
2020-05-15 04:20:35 +00:00
},
{
label: 'Utilities',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: [],
selectors: ['#utilities .example'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
2020-05-18 23:19:02 +00:00
onBeforeScript: null,
},
2020-05-15 04:20:35 +00:00
],
paths: {
bitmaps_reference: 'test/regression',
bitmaps_test: 'node_modules/backstopjs/.tmp/bitmaps_test',
casper_scripts: 'node_modules/backstopjs/.tmp/casper_scripts',
html_report: 'node_modules/backstopjs/.tmp/html_report',
2020-05-18 23:19:02 +00:00
ci_report: 'node_modules/backstopjs/.tmp/ci_report',
2020-05-15 04:20:35 +00:00
},
engine: 'phantomjs',
report: ['browser', 'CLI', 'CI'],
casperFlags: [],
debug: false,
2020-05-18 23:19:02 +00:00
port: 3002,
2017-01-24 20:20:25 +00:00
}