Skip to content

Commit

Permalink
Merge pull request patternfly#776 from cliffpyles/feature/add-visual-…
Browse files Browse the repository at this point in the history
…regression-test

chore(tests): Add visual regression tests
  • Loading branch information
jeff-phillips-18 authored Oct 11, 2017
2 parents 6ce64d0 + 5e2e06e commit 451b90b
Show file tree
Hide file tree
Showing 77 changed files with 539 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ patternfly.spec

#Ignore generated dist files
/dist

#Ignore backstop regression test images and reports
/backstop_data/bitmaps_test
/backstop_data/bitmaps_reference
/backstop_data/html_report
29 changes: 29 additions & 0 deletions backstop/config/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const scenarios = require('./scenarios');

module.exports = {
"id": "backstop_default",
"viewports": [
{
"label": "desktop",
"width": 1440,
"height": 900
}
],
"onBeforeScript": "chromy/onBefore.js",
"onReadyScript": "chromy/onReady.js",
"scenarios": scenarios,
"paths": {
"bitmaps_reference": "backstop_data/bitmaps_reference",
"bitmaps_test": "backstop_data/bitmaps_test",
"engine_scripts": "backstop_data/engine_scripts",
"html_report": "backstop_data/html_report",
"ci_report": "backstop_data/ci_report"
},
"report": ["browser"],
"engine": "chrome",
"engineFlags": [],
"asyncCaptureLimit": 5,
"asyncCompareLimit": 25,
"debug": false,
"debugWindow": false
}
4 changes: 4 additions & 0 deletions backstop/config/scenarios/about-modal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'about-modal',
url: 'http://localhost:9000/about-modal.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/accordions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'accordions',
url: 'http://localhost:9000/accordions.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/alerts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'alerts',
url: 'http://localhost:9000/alerts.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/application-launcher.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'application-launcher',
url: 'http://localhost:9000/application-launcher.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/area-charts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'area-charts',
url: 'http://localhost:9000/area-charts.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/badges.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'badges',
url: 'http://localhost:9000/badges.html'
}]
5 changes: 5 additions & 0 deletions backstop/config/scenarios/bar-charts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// module.exports = [{
// label: 'bar-charts',
// url: 'http://localhost:9000/bar-charts.html'
// }]
module.exports = []
4 changes: 4 additions & 0 deletions backstop/config/scenarios/basic.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'basic',
url: 'http://localhost:9000/basic.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/blank-slate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'blank-slate',
url: 'http://localhost:9000/blank-slate.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/bootstrap-combobox.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'bootstrap-combobox',
url: 'http://localhost:9000/bootstrap-combobox.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/bootstrap-datepicker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'bootstrap-datepicker',
url: 'http://localhost:9000/bootstrap-datepicker.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/bootstrap-select.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'bootstrap-select',
url: 'http://localhost:9000/bootstrap-select.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/bootstrap-switch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'bootstrap-switch',
url: 'http://localhost:9000/bootstrap-switch.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/bootstrap-touchspin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'bootstrap-touchspin',
url: 'http://localhost:9000/bootstrap-touchspin.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/bootstrap-treeview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'bootstrap-treeview',
url: 'http://localhost:9000/bootstrap-treeview.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/breadcrumbs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'breadcrumbs',
url: 'http://localhost:9000/breadcrumbs.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/buttons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'buttons',
url: 'http://localhost:9000/buttons.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/card-view-card-variatons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'card-view-card-variatons',
url: 'http://localhost:9000/card-view-card-variatons.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/card-view-multi-select.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'card-view-multi-select',
url: 'http://localhost:9000/card-view-multi-select.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/card-view-single-select.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'card-view-single-select',
url: 'http://localhost:9000/card-view-single-select.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/cards.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'cards',
url: 'http://localhost:9000/cards.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/code.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'code',
url: 'http://localhost:9000/code.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/dashboard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'dashboard',
url: 'http://localhost:9000/dashboard.html'
}]
5 changes: 5 additions & 0 deletions backstop/config/scenarios/donut-charts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// module.exports = [{
// label: 'donut-charts',
// url: 'http://localhost:9000/donut-charts.html'
// }]
module.exports = []
4 changes: 4 additions & 0 deletions backstop/config/scenarios/dropdowns.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'dropdowns',
url: 'http://localhost:9000/dropdowns.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/form.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'form',
url: 'http://localhost:9000/form.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/forms.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'forms',
url: 'http://localhost:9000/forms.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/icons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'icons',
url: 'http://localhost:9000/icons.html'
}]
138 changes: 138 additions & 0 deletions backstop/config/scenarios/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
const aboutModalScenario = require('./about-modal'),
accordionsScenario = require('./accordions'),
alertsScenario = require('./alerts'),
applicationLauncherScenario = require('./application-launcher'),
badgesScenario = require('./badges'),
blankSlateScenario = require('./blank-slate'),
bootstrapComboboxScenario = require('./bootstrap-combobox'),
bootstrapDatepickerScenario = require('./bootstrap-datepicker'),
bootstrapSelectScenario = require('./bootstrap-select'),
bootstrapSwitchScenario = require('./bootstrap-switch'),
bootstrapTouchspinScenario = require('./bootstrap-touchspin'),
bootstrapTreeviewScenario = require('./bootstrap-treeview'),
breadcrumbsScenario = require('./breadcrumbs'),
buttonsScenario = require('./buttons'),
cardViewCardVariatonsScenario = require('./card-view-card-variatons'),
codeScenario = require('./code'),
dropdownsScenario = require('./dropdowns'),
formsScenario = require('./forms'),
iconsScenario = require('./icons'),
infoTipScenario = require('./info-tip'),
labelsScenario = require('./labels'),
listGroupScenario = require('./list-group'),
listScenario = require('./list'),
listViewRowsScenario = require('./list-view-rows'),
modalsScenario = require('./modals'),
navbarScenario = require('./navbar'),
paginationScenario = require('./pagination'),
panelsScenario = require('./panels'),
popoversScenario = require('./popovers'),
progressBarsScenario = require('./progress-bars'),
searchScenario = require('./search'),
spinnerScenario = require('./spinner'),
tableViewColumnsScenario = require('./table-view-columns'),
tableViewNavbarScenario = require('./table-view-navbar'),
tableViewScenario = require('./table-view'),
tablesScenario = require('./tables'),
tabsScenario = require('./tabs'),
timePickerScenario = require('./time-picker'),
toastsScenario = require('./toasts'),
toolbarScenario = require('./toolbar'),
tooltipScenario = require('./tooltip'),
typographyScenario = require('./typography'),
wizardScenario = require('./wizard'),
areaChartsScenario = require('./area-charts'),
barChartsScenario = require('./bar-charts'),
donutChartsScenario = require('./donut-charts'),
lineChartsScenario = require('./line-charts'),
pieChartsScenario = require('./pie-charts'),
utilizationBarChartsScenario = require('./utilization-bar-charts'),
basicScenario = require('./basic'),
treeViewScenario = require('./tree-view'),
cardViewMultiSelectScenario = require('./card-view-multi-select'),
cardViewSingleSelectScenario = require('./card-view-single-select'),
cardsScenario = require('./cards'),
dashboardScenario = require('./dashboard'),
formScenario = require('./form'),
listViewCompoundExpansionScenario = require('./list-view-compound-expansion'),
listViewSimpleExpansionScenario = require('./list-view-simple-expansion'),
listViewScenario = require('./list-view'),
loginScenario = require('./login'),
notificationDrawerHoriztonalNavScenario = require('./notification-drawer-horiztonal-nav'),
notificationDrawerVerticalNavScenario = require('./notification-drawer-vertical-nav'),
paginationCardViewScenario = require('./pagination-card-view'),
paginationListViewScenario = require('./pagination-list-view'),
paginationTableViewScenario = require('./pagination-table-view'),
tabScenario = require('./tab'),
typography2Scenario = require('./typography2');

const scenarios = [
...aboutModalScenario,
...accordionsScenario,
...alertsScenario,
...applicationLauncherScenario,
...badgesScenario,
...blankSlateScenario,
...bootstrapComboboxScenario,
...bootstrapDatepickerScenario,
...bootstrapSelectScenario,
...bootstrapSwitchScenario,
...bootstrapTouchspinScenario,
...bootstrapTreeviewScenario,
...breadcrumbsScenario,
...buttonsScenario,
...cardViewCardVariatonsScenario,
...codeScenario,
...dropdownsScenario,
...formsScenario,
...iconsScenario,
...infoTipScenario,
...labelsScenario,
...listGroupScenario,
...listScenario,
...listViewRowsScenario,
...modalsScenario,
...navbarScenario,
...paginationScenario,
...panelsScenario,
...popoversScenario,
...progressBarsScenario,
...searchScenario,
...spinnerScenario,
...tableViewColumnsScenario,
...tableViewNavbarScenario,
...tableViewScenario,
...tablesScenario,
...tabsScenario,
...timePickerScenario,
...toastsScenario,
...toolbarScenario,
...tooltipScenario,
...typographyScenario,
...wizardScenario,
...areaChartsScenario,
...barChartsScenario,
...donutChartsScenario,
...lineChartsScenario,
...pieChartsScenario,
...utilizationBarChartsScenario,
...basicScenario,
...treeViewScenario,
...cardViewMultiSelectScenario,
...cardViewSingleSelectScenario,
...cardsScenario,
...dashboardScenario,
...formScenario,
...listViewCompoundExpansionScenario,
...listViewSimpleExpansionScenario,
...listViewScenario,
...loginScenario,
...notificationDrawerHoriztonalNavScenario,
...notificationDrawerVerticalNavScenario,
...paginationCardViewScenario,
...paginationListViewScenario,
...paginationTableViewScenario,
...tabScenario
];

module.exports = scenarios
4 changes: 4 additions & 0 deletions backstop/config/scenarios/info-tip.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'info-tip',
url: 'http://localhost:9000/info-tip.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/labels.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'labels',
url: 'http://localhost:9000/labels.html'
}]
5 changes: 5 additions & 0 deletions backstop/config/scenarios/line-charts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// module.exports = [{
// label: 'line-charts',
// url: 'http://localhost:9000/line-charts.html'
// }]
module.exports = []
4 changes: 4 additions & 0 deletions backstop/config/scenarios/list-group.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'list-group',
url: 'http://localhost:9000/list-group.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/list-view-compound-expansion.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'list-view-compound-expansion',
url: 'http://localhost:9000/list-view-compound-expansion.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/list-view-rows.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'list-view-rows',
url: 'http://localhost:9000/list-view-rows.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/list-view-simple-expansion.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'list-view-simple-expansion',
url: 'http://localhost:9000/list-view-simple-expansion.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/list-view.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'list-view',
url: 'http://localhost:9000/list-view.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/list.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'list',
url: 'http://localhost:9000/list.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/login.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'login',
url: 'http://localhost:9000/login.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/modals.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'modals',
url: 'http://localhost:9000/modals.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/navbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'navbar',
url: 'http://localhost:9000/navbar.html'
}]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'notification-drawer-horiztonal-nav',
url: 'http://localhost:9000/notification-drawer-horiztonal-nav.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/notification-drawer-vertical-nav.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'notification-drawer-vertical-nav',
url: 'http://localhost:9000/notification-drawer-vertical-nav.html'
}]
4 changes: 4 additions & 0 deletions backstop/config/scenarios/pagination-card-view.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [{
label: 'pagination-card-view',
url: 'http://localhost:9000/pagination-card-view.html'
}]
Loading

0 comments on commit 451b90b

Please sign in to comment.