2017-01-24 20:20:25 +00:00
|
|
|
'use strict'
|
|
|
|
const config = {
|
2017-01-26 09:52:45 +00:00
|
|
|
viewports: [{
|
|
|
|
name: 'phone',
|
|
|
|
width: 320,
|
|
|
|
height: 480
|
|
|
|
}, {
|
|
|
|
name: 'laptop',
|
|
|
|
width: 1280,
|
|
|
|
height: 800
|
|
|
|
}],
|
2016-08-01 00:28:58 +00:00
|
|
|
scenarios: [{
|
2016-09-10 08:51:08 +00:00
|
|
|
label: 'Typography',
|
|
|
|
url: 'http://localhost:3000',
|
|
|
|
hideSelectors: [],
|
2016-11-22 22:30:41 +00:00
|
|
|
removeSelectors: [],
|
2017-01-25 08:46:55 +00:00
|
|
|
selectors: ['#typography .example'],
|
2016-09-10 08:51:08 +00:00
|
|
|
readyEvent: null,
|
|
|
|
delay: 500,
|
|
|
|
misMatchThreshold: 0.1,
|
|
|
|
onReadyScript: null,
|
|
|
|
onBeforeScript: null
|
|
|
|
}, {
|
|
|
|
label: 'Blockquotes',
|
|
|
|
url: 'http://localhost:3000',
|
|
|
|
hideSelectors: [],
|
2016-11-22 22:30:41 +00:00
|
|
|
removeSelectors: [],
|
2017-01-25 08:46:55 +00:00
|
|
|
selectors: ['#blockquotes .example'],
|
2016-09-10 08:51:08 +00:00
|
|
|
readyEvent: null,
|
|
|
|
delay: 500,
|
|
|
|
misMatchThreshold: 0.1,
|
|
|
|
onReadyScript: null,
|
|
|
|
onBeforeScript: null
|
|
|
|
}, {
|
|
|
|
label: 'Buttons',
|
|
|
|
url: 'http://localhost:3000',
|
|
|
|
hideSelectors: [],
|
2016-11-22 22:30:41 +00:00
|
|
|
removeSelectors: [],
|
2017-01-25 08:46:55 +00:00
|
|
|
selectors: ['#buttons .example'],
|
2016-09-10 08:51:08 +00:00
|
|
|
readyEvent: null,
|
|
|
|
delay: 500,
|
|
|
|
misMatchThreshold: 0.1,
|
|
|
|
onReadyScript: null,
|
|
|
|
onBeforeScript: null
|
|
|
|
}, {
|
|
|
|
label: 'Lists',
|
|
|
|
url: 'http://localhost:3000',
|
|
|
|
hideSelectors: [],
|
2016-11-22 22:30:41 +00:00
|
|
|
removeSelectors: [],
|
2017-01-25 08:46:55 +00:00
|
|
|
selectors: ['#lists .example'],
|
2016-09-10 08:51:08 +00:00
|
|
|
readyEvent: null,
|
|
|
|
delay: 500,
|
|
|
|
misMatchThreshold: 0.1,
|
|
|
|
onReadyScript: null,
|
|
|
|
onBeforeScript: null
|
|
|
|
}, {
|
|
|
|
label: 'Forms',
|
|
|
|
url: 'http://localhost:3000',
|
|
|
|
hideSelectors: [],
|
2016-11-22 22:30:41 +00:00
|
|
|
removeSelectors: [],
|
2017-01-25 08:46:55 +00:00
|
|
|
selectors: ['#forms .example'],
|
2016-09-10 08:51:08 +00:00
|
|
|
readyEvent: null,
|
|
|
|
delay: 500,
|
|
|
|
misMatchThreshold: 0.1,
|
|
|
|
onReadyScript: null,
|
|
|
|
onBeforeScript: null
|
|
|
|
}, {
|
|
|
|
label: 'Tables',
|
|
|
|
url: 'http://localhost:3000',
|
|
|
|
hideSelectors: [],
|
2016-11-22 22:30:41 +00:00
|
|
|
removeSelectors: [],
|
2017-01-25 08:46:55 +00:00
|
|
|
selectors: ['#tables .example'],
|
2016-09-10 08:51:08 +00:00
|
|
|
readyEvent: null,
|
|
|
|
delay: 500,
|
|
|
|
misMatchThreshold: 0.1,
|
|
|
|
onReadyScript: null,
|
|
|
|
onBeforeScript: null
|
|
|
|
}, {
|
|
|
|
label: 'Grids',
|
|
|
|
url: 'http://localhost:3000',
|
|
|
|
hideSelectors: [],
|
2016-11-22 22:30:41 +00:00
|
|
|
removeSelectors: [],
|
2017-01-25 08:46:55 +00:00
|
|
|
selectors: ['#grids .example'],
|
2016-09-10 08:51:08 +00:00
|
|
|
readyEvent: null,
|
|
|
|
delay: 500,
|
|
|
|
misMatchThreshold: 0.1,
|
|
|
|
onReadyScript: null,
|
|
|
|
onBeforeScript: null
|
|
|
|
}, {
|
|
|
|
label: 'Codes',
|
|
|
|
url: 'http://localhost:3000',
|
|
|
|
hideSelectors: [],
|
2016-11-22 22:30:41 +00:00
|
|
|
removeSelectors: [],
|
2017-01-25 08:46:55 +00:00
|
|
|
selectors: ['#codes .example'],
|
2016-09-10 08:51:08 +00:00
|
|
|
readyEvent: null,
|
|
|
|
delay: 500,
|
|
|
|
misMatchThreshold: 0.1,
|
|
|
|
onReadyScript: null,
|
|
|
|
onBeforeScript: null
|
|
|
|
}, {
|
|
|
|
label: 'Utilities',
|
|
|
|
url: 'http://localhost:3000',
|
|
|
|
hideSelectors: [],
|
2016-11-22 22:30:41 +00:00
|
|
|
removeSelectors: [],
|
2017-01-25 08:46:55 +00:00
|
|
|
selectors: ['#utilities .example'],
|
2016-09-10 08:51:08 +00:00
|
|
|
readyEvent: null,
|
|
|
|
delay: 500,
|
|
|
|
misMatchThreshold: 0.1,
|
|
|
|
onReadyScript: null,
|
|
|
|
onBeforeScript: null
|
|
|
|
}],
|
2016-08-01 00:28:58 +00:00
|
|
|
paths: {
|
2016-11-22 22:37:31 +00:00
|
|
|
bitmaps_reference: 'test/regression',
|
2016-11-11 05:30:09 +00:00
|
|
|
bitmaps_test: 'node_modules/backstopjs/.tmp/bitmaps_test',
|
|
|
|
casper_scripts: 'node_modules/backstopjs/.tmp/casper_scripts',
|
|
|
|
html_report: 'node_modules/backstopjs/.tmp/html_report',
|
|
|
|
ci_report: 'node_modules/backstopjs/.tmp/ci_report'
|
2016-08-01 00:28:58 +00:00
|
|
|
},
|
2016-09-10 00:34:39 +00:00
|
|
|
engine: 'phantomjs',
|
2017-01-26 09:52:45 +00:00
|
|
|
report: [
|
|
|
|
'browser',
|
|
|
|
'CLI',
|
|
|
|
'CI'
|
|
|
|
],
|
2016-08-01 00:28:58 +00:00
|
|
|
casperFlags: [],
|
|
|
|
debug: false,
|
|
|
|
port: 3002
|
2017-01-24 20:20:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = config
|