forked from patternfly/patternfly-3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(tests): Add regression test optimizations
- Loading branch information
Cliff Pyles
committed
Oct 18, 2017
1 parent
451b90b
commit 4c808da
Showing
303 changed files
with
368 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- '4' | ||
- '6' | ||
|
||
cache: | ||
directories: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,9 +37,10 @@ GEM | |
|
||
PLATFORMS | ||
ruby | ||
x86_64-darwin-16 | ||
|
||
DEPENDENCIES | ||
jekyll | ||
|
||
BUNDLED WITH | ||
1.13.3 | ||
1.15.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const backstop = require('backstopjs'); | ||
const config = require('./config'); | ||
|
||
// check for arguments passed at the command line | ||
const cliArguments = process.argv.filter((current, index) => { | ||
return index > 1; | ||
}); | ||
|
||
// if arguments are passed only run the given scenarios | ||
if (cliArguments.length) { | ||
let scenarios = []; | ||
|
||
cliArguments.forEach((currentScenario) => { | ||
let scenarioPath = path.join(__dirname, 'config', 'scenarios', `${currentScenario}.js`); | ||
let scenario = require(scenarioPath); | ||
|
||
scenarios.push(...scenario); | ||
}); | ||
|
||
config.scenarios = scenarios; | ||
} | ||
|
||
backstop('approve', { config }) | ||
.then(() => { | ||
console.log('approved changes'); | ||
}) | ||
.catch((err) => { | ||
throw err; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,65 @@ | ||
const scenarios = require('./scenarios'); | ||
const requireAll = require('require-all'); | ||
const reportTypes = (process.env.NODE_ENV === 'test') ? ['CI'] : ['browser']; | ||
|
||
let scenarioConfigs = requireAll(`${__dirname}/scenarios`); | ||
let scenariosToLoad = []; | ||
|
||
Object.keys(scenarioConfigs).forEach((scenarioConfig) => { | ||
scenarioConfigs[scenarioConfig].forEach((scenario) => { | ||
if (!scenario.disabled) { | ||
scenariosToLoad.push(scenario); | ||
} | ||
}) | ||
}); | ||
|
||
module.exports = { | ||
"id": "backstop_default", | ||
"viewports": [ | ||
{ | ||
"label": "desktop", | ||
"width": 1440, | ||
"height": 900 | ||
"label": "large-device", | ||
"width": 1280, | ||
"height": 720 | ||
}, | ||
{ | ||
"label": "medium-device", | ||
"width": 1024, | ||
"height": 768 | ||
}, | ||
{ | ||
"label": "small-device", | ||
"width": 768, | ||
"height": 1024 | ||
}, | ||
{ | ||
"label": "extra-small-device", | ||
"width": 480, | ||
"height": 320 | ||
} | ||
], | ||
"onBeforeScript": "chromy/onBefore.js", | ||
"onReadyScript": "chromy/onReady.js", | ||
"scenarios": scenarios, | ||
"scenarios": scenariosToLoad, | ||
"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"], | ||
"report": reportTypes, | ||
"engine": "chrome", | ||
"engineFlags": [], | ||
"asyncCaptureLimit": 5, | ||
"asyncCompareLimit": 25, | ||
"asyncCaptureLimit": 20, | ||
"asyncCompareLimit": 100, | ||
"debug": false, | ||
"debugWindow": false | ||
"debugWindow": false, | ||
"resembleOutputOptions": { | ||
"errorColor": { | ||
"red": 204, | ||
"green": 0, | ||
"blue": 0 | ||
}, | ||
"errorType": "movement", | ||
"transparency": 0.15 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'about-modal', | ||
url: 'http://localhost:9000/about-modal.html' | ||
url: 'http://localhost:4200/about-modal.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'accordions', | ||
url: 'http://localhost:9000/accordions.html' | ||
url: 'http://localhost:4200/accordions.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'alerts', | ||
url: 'http://localhost:9000/alerts.html' | ||
url: 'http://localhost:4200/alerts.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'application-launcher', | ||
url: 'http://localhost:9000/application-launcher.html' | ||
url: 'http://localhost:4200/application-launcher.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'area-charts', | ||
url: 'http://localhost:9000/area-charts.html' | ||
url: 'http://localhost:4200/area-charts.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'badges', | ||
url: 'http://localhost:9000/badges.html' | ||
url: 'http://localhost:4200/badges.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// module.exports = [{ | ||
// label: 'bar-charts', | ||
// url: 'http://localhost:9000/bar-charts.html' | ||
// }] | ||
module.exports = [] | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'bar-charts', | ||
url: 'http://localhost:4200/bar-charts.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'basic', | ||
url: 'http://localhost:9000/basic.html' | ||
url: 'http://localhost:4200/basic.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'blank-slate', | ||
url: 'http://localhost:9000/blank-slate.html' | ||
url: 'http://localhost:4200/blank-slate.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'bootstrap-combobox', | ||
url: 'http://localhost:9000/bootstrap-combobox.html' | ||
url: 'http://localhost:4200/bootstrap-combobox.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'bootstrap-datepicker', | ||
url: 'http://localhost:9000/bootstrap-datepicker.html' | ||
url: 'http://localhost:4200/bootstrap-datepicker.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'bootstrap-select', | ||
url: 'http://localhost:9000/bootstrap-select.html' | ||
url: 'http://localhost:4200/bootstrap-select.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'bootstrap-switch', | ||
url: 'http://localhost:9000/bootstrap-switch.html' | ||
url: 'http://localhost:4200/bootstrap-switch.html', | ||
disabled: true | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'bootstrap-touchspin', | ||
url: 'http://localhost:9000/bootstrap-touchspin.html' | ||
url: 'http://localhost:4200/bootstrap-touchspin.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'bootstrap-treeview', | ||
url: 'http://localhost:9000/bootstrap-treeview.html' | ||
url: 'http://localhost:4200/bootstrap-treeview.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'breadcrumbs', | ||
url: 'http://localhost:9000/breadcrumbs.html' | ||
url: 'http://localhost:4200/breadcrumbs.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'buttons', | ||
url: 'http://localhost:9000/buttons.html' | ||
url: 'http://localhost:4200/buttons.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'card-view-card-variatons', | ||
url: 'http://localhost:9000/card-view-card-variatons.html' | ||
url: 'http://localhost:4200/card-view-card-variatons.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'card-view-multi-select', | ||
url: 'http://localhost:9000/card-view-multi-select.html' | ||
url: 'http://localhost:4200/card-view-multi-select.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'card-view-single-select', | ||
url: 'http://localhost:9000/card-view-single-select.html' | ||
url: 'http://localhost:4200/card-view-single-select.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'cards', | ||
url: 'http://localhost:9000/cards.html' | ||
url: 'http://localhost:4200/cards.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'code', | ||
url: 'http://localhost:9000/code.html' | ||
url: 'http://localhost:4200/code.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
module.exports = [{ | ||
label: 'dashboard', | ||
url: 'http://localhost:9000/dashboard.html' | ||
url: 'http://localhost:4200/dashboard.html', | ||
removeSelectors: [ | ||
'.page-header + .alert', | ||
'.toast-notifications-list-pf' | ||
], | ||
disabled: true | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// module.exports = [{ | ||
// label: 'donut-charts', | ||
// url: 'http://localhost:9000/donut-charts.html' | ||
// }] | ||
module.exports = [] | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'donut-charts', | ||
url: 'http://localhost:4200/donut-charts.html', | ||
disabled: true | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'dropdowns', | ||
url: 'http://localhost:9000/dropdowns.html' | ||
url: 'http://localhost:4200/dropdowns.html' | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'form', | ||
url: 'http://localhost:9000/form.html' | ||
url: 'http://localhost:4200/form.html', | ||
disabled: true | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'forms', | ||
url: 'http://localhost:9000/forms.html' | ||
url: 'http://localhost:4200/forms.html', | ||
disabled: true | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = [{ | ||
removeSelectors: ['.page-header + .alert'], | ||
label: 'icons', | ||
url: 'http://localhost:9000/icons.html' | ||
url: 'http://localhost:4200/icons.html' | ||
}] |
Oops, something went wrong.