Update visual regression test with BackstopJS
@@ -1,114 +1,112 @@
|
||||
module.exports = {
|
||||
viewports: [
|
||||
{ name: 'phone', width: 320, height: 480 },
|
||||
{ name: 'tablet', width: 768, height: 1024 },
|
||||
{ name: 'laptop', width: 1280, height: 800 },
|
||||
{ name: 'desktop', width: 1920, height: 1080 }
|
||||
{ name: 'laptop', width: 1280, height: 800 }
|
||||
],
|
||||
scenarios: [{
|
||||
label: 'Typography',
|
||||
url: 'http://localhost:3000',
|
||||
hideSelectors: [],
|
||||
removeSelectors: ['#__bs_notify__'],
|
||||
selectors: ['#typography'],
|
||||
readyEvent: null,
|
||||
delay: 500,
|
||||
misMatchThreshold: 0.1,
|
||||
onBeforeScript: 'onBefore.js',
|
||||
onReadyScript: 'onReady.js'
|
||||
},{
|
||||
label: 'Blockquotes',
|
||||
url: 'http://localhost:3000',
|
||||
hideSelectors: [],
|
||||
removeSelectors: ['#__bs_notify__'],
|
||||
selectors: ['#blockquotes'],
|
||||
readyEvent: null,
|
||||
delay: 500,
|
||||
misMatchThreshold: 0.1,
|
||||
onBeforeScript: 'onBefore.js',
|
||||
onReadyScript: 'onReady.js'
|
||||
}, {
|
||||
label: 'Buttons',
|
||||
url: 'http://localhost:3000',
|
||||
hideSelectors: [],
|
||||
removeSelectors: ['#__bs_notify__'],
|
||||
selectors: ['#buttons'],
|
||||
readyEvent: null,
|
||||
delay: 500,
|
||||
misMatchThreshold: 0.1,
|
||||
onBeforeScript: 'onBefore.js',
|
||||
onReadyScript: 'onReady.js'
|
||||
}, {
|
||||
label: 'Lists',
|
||||
url: 'http://localhost:3000',
|
||||
hideSelectors: [],
|
||||
removeSelectors: ['#__bs_notify__'],
|
||||
selectors: ['#lists'],
|
||||
readyEvent: null,
|
||||
delay: 500,
|
||||
misMatchThreshold: 0.1,
|
||||
onBeforeScript: 'onBefore.js',
|
||||
onReadyScript: 'onReady.js'
|
||||
}, {
|
||||
label: 'Forms',
|
||||
url: 'http://localhost:3000',
|
||||
hideSelectors: [],
|
||||
removeSelectors: ['#__bs_notify__'],
|
||||
selectors: ['#forms'],
|
||||
readyEvent: null,
|
||||
delay: 500,
|
||||
misMatchThreshold: 0.1,
|
||||
onBeforeScript: 'onBefore.js',
|
||||
onReadyScript: 'onReady.js'
|
||||
}, {
|
||||
label: 'Tables',
|
||||
url: 'http://localhost:3000',
|
||||
hideSelectors: [],
|
||||
removeSelectors: ['#__bs_notify__'],
|
||||
selectors: ['#tables'],
|
||||
readyEvent: null,
|
||||
delay: 500,
|
||||
misMatchThreshold: 0.1,
|
||||
onBeforeScript: 'onBefore.js',
|
||||
onReadyScript: 'onReady.js'
|
||||
}, {
|
||||
label: 'Grids',
|
||||
url: 'http://localhost:3000',
|
||||
hideSelectors: [],
|
||||
removeSelectors: ['#__bs_notify__'],
|
||||
selectors: ['#grids'],
|
||||
readyEvent: null,
|
||||
delay: 500,
|
||||
misMatchThreshold: 0.1,
|
||||
onBeforeScript: 'onBefore.js',
|
||||
onReadyScript: 'onReady.js'
|
||||
}, {
|
||||
label: 'Codes',
|
||||
url: 'http://localhost:3000',
|
||||
hideSelectors: [],
|
||||
removeSelectors: ['#__bs_notify__'],
|
||||
selectors: ['#codes'],
|
||||
readyEvent: null,
|
||||
delay: 500,
|
||||
misMatchThreshold: 0.1,
|
||||
onBeforeScript: 'onBefore.js',
|
||||
onReadyScript: 'onReady.js'
|
||||
}, {
|
||||
label: 'Utilities',
|
||||
url: 'http://localhost:3000',
|
||||
hideSelectors: [],
|
||||
removeSelectors: ['#__bs_notify__'],
|
||||
selectors: ['#utilities'],
|
||||
readyEvent: null,
|
||||
delay: 500,
|
||||
misMatchThreshold: 0.1,
|
||||
onBeforeScript: 'onBefore.js',
|
||||
onReadyScript: 'onReady.js'
|
||||
}],
|
||||
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
|
||||
}],
|
||||
paths: {
|
||||
bitmaps_reference: '../../test/visual/reference',
|
||||
bitmaps_test: '.tmp',
|
||||
casper_scripts: '../../test/visual/fixtures',
|
||||
casper_scripts: null,
|
||||
compare_data: '.tmp/compare.json'
|
||||
},
|
||||
engine: 'phantomjs',
|
||||
|
@@ -1,4 +0,0 @@
|
||||
module.exports = function(casper, scenario, vp) {
|
||||
casper.echo('onBeforeEach.js', 'INFO');
|
||||
casper.wait(50);
|
||||
};
|
@@ -1,4 +0,0 @@
|
||||
module.exports = function(casper, scenario, vp) {
|
||||
casper.echo('onReady.js', 'INFO');
|
||||
casper.wait(50);
|
||||
};
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
BIN
test/visual/reference/0_0_typography_1_laptop.png
Normal file
After Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
BIN
test/visual/reference/1_0_blockquotes_1_laptop.png
Normal file
After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 78 KiB |
BIN
test/visual/reference/2_0_buttons_1_laptop.png
Normal file
After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 84 KiB |
BIN
test/visual/reference/3_0_lists_1_laptop.png
Normal file
After Width: | Height: | Size: 90 KiB |
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |
BIN
test/visual/reference/4_0_forms_1_laptop.png
Normal file
After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
BIN
test/visual/reference/5_0_tables_1_laptop.png
Normal file
After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 127 KiB |
BIN
test/visual/reference/6_0_grids_1_laptop.png
Normal file
After Width: | Height: | Size: 147 KiB |
Before Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.3 KiB |
BIN
test/visual/reference/7_0_codes_1_laptop.png
Normal file
After Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
BIN
test/visual/reference/8_0_utilities_1_laptop.png
Normal file
After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 6.8 KiB |