milligram/test/visual/backstop.config.js

118 lines
2.6 KiB
JavaScript
Raw Normal View History

2016-08-01 00:28:58 +00:00
module.exports = {
viewports: [
{ name: 'phone', width: 320, height: 480 },
{ name: 'laptop', width: 1280, height: 800 }
2016-08-01 00:28:58 +00:00
],
scenarios: [{
label: 'Typography',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: ['#__bs_notify__'],
selectors: ['#typography'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
onBeforeScript: null
}, {
label: 'Blockquotes',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: ['#__bs_notify__'],
selectors: ['#blockquotes'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
onBeforeScript: null
}, {
label: 'Buttons',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: ['#__bs_notify__'],
selectors: ['#buttons'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
onBeforeScript: null
}, {
label: 'Lists',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: ['#__bs_notify__'],
selectors: ['#lists'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
onBeforeScript: null
}, {
label: 'Forms',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: ['#__bs_notify__'],
selectors: ['#forms'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
onBeforeScript: null
}, {
label: 'Tables',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: ['#__bs_notify__'],
selectors: ['#tables'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
onBeforeScript: null
}, {
label: 'Grids',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: ['#__bs_notify__'],
selectors: ['#grids'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
onBeforeScript: null
}, {
label: 'Codes',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: ['#__bs_notify__'],
selectors: ['#codes'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
onBeforeScript: null
}, {
label: 'Utilities',
url: 'http://localhost:3000',
hideSelectors: [],
removeSelectors: ['#__bs_notify__'],
selectors: ['#utilities'],
readyEvent: null,
delay: 500,
misMatchThreshold: 0.1,
onReadyScript: null,
onBeforeScript: null
}],
2016-08-01 00:28:58 +00:00
paths: {
bitmaps_reference: '../../test/visual/reference',
bitmaps_test: '.tmp',
casper_scripts: null,
2016-08-01 00:28:58 +00:00
compare_data: '.tmp/compare.json'
},
engine: 'phantomjs',
report: ['browser', 'CLI'],
2016-08-01 00:28:58 +00:00
casperFlags: [],
debug: false,
port: 3002
}