This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from Tripwire/feature/testing
Feature/testing
- Loading branch information
Showing
89 changed files
with
4,748 additions
and
2,725 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
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,48 @@ | ||
{ | ||
"id": "octagon", | ||
"viewports": [ | ||
{ | ||
"label": "tablet", | ||
"width": 1024, | ||
"height": 768 | ||
} | ||
], | ||
"onBeforeScript": "chromy/onBefore.js", | ||
"onReadyScript": "chromy/onReady.js", | ||
"scenarios": [ | ||
{ | ||
"label": "Octagon", | ||
"cookiePath": "backstop_data/engine_scripts/cookies.json", | ||
"url": "http://localhost:3333", | ||
"referenceUrl": "", | ||
"readyEvent": "", | ||
"readySelector": "", | ||
"delay": 2000, | ||
"hideSelectors": [ | ||
".hide-in-test" | ||
], | ||
"removeSelectors": [], | ||
"hoverSelector": "", | ||
"clickSelector": "", | ||
"postInteractionWait": "", | ||
"selectors": [ | ||
"[data-reactroot]:not(.hasSidebar-0-2)" | ||
], | ||
"selectorExpansion": true, | ||
"misMatchThreshold" : 0.1, | ||
"requireSameDimensions": true | ||
} | ||
], | ||
"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": [], | ||
"debug": false, | ||
"debugWindow": false | ||
} |
Binary file added
BIN
+1.6 KB
...itmaps_reference/octagon_Octagon_0_data-reactrootnothasSidebar-0-2_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.21 KB
..._reference/octagon_Octagon_10_data-reactrootnothasSidebar-0-2__n10_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.63 KB
..._reference/octagon_Octagon_11_data-reactrootnothasSidebar-0-2__n11_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.7 KB
..._reference/octagon_Octagon_12_data-reactrootnothasSidebar-0-2__n12_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.02 KB
..._reference/octagon_Octagon_13_data-reactrootnothasSidebar-0-2__n13_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.05 KB
..._reference/octagon_Octagon_14_data-reactrootnothasSidebar-0-2__n14_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+756 Bytes
..._reference/octagon_Octagon_15_data-reactrootnothasSidebar-0-2__n15_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.62 KB
..._reference/octagon_Octagon_16_data-reactrootnothasSidebar-0-2__n16_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.5 KB
..._reference/octagon_Octagon_17_data-reactrootnothasSidebar-0-2__n17_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.2 KB
..._reference/octagon_Octagon_18_data-reactrootnothasSidebar-0-2__n18_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.93 KB
..._reference/octagon_Octagon_19_data-reactrootnothasSidebar-0-2__n19_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.46 KB
...ps_reference/octagon_Octagon_1_data-reactrootnothasSidebar-0-2__n1_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.61 KB
..._reference/octagon_Octagon_20_data-reactrootnothasSidebar-0-2__n20_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.44 KB
..._reference/octagon_Octagon_21_data-reactrootnothasSidebar-0-2__n21_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.36 KB
..._reference/octagon_Octagon_22_data-reactrootnothasSidebar-0-2__n22_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+16.8 KB
..._reference/octagon_Octagon_23_data-reactrootnothasSidebar-0-2__n23_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.3 KB
..._reference/octagon_Octagon_24_data-reactrootnothasSidebar-0-2__n24_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.74 KB
..._reference/octagon_Octagon_25_data-reactrootnothasSidebar-0-2__n25_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.02 KB
..._reference/octagon_Octagon_26_data-reactrootnothasSidebar-0-2__n26_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.53 KB
..._reference/octagon_Octagon_27_data-reactrootnothasSidebar-0-2__n27_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.67 KB
..._reference/octagon_Octagon_28_data-reactrootnothasSidebar-0-2__n28_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+686 Bytes
..._reference/octagon_Octagon_29_data-reactrootnothasSidebar-0-2__n29_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.66 KB
...ps_reference/octagon_Octagon_2_data-reactrootnothasSidebar-0-2__n2_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.9 KB
..._reference/octagon_Octagon_30_data-reactrootnothasSidebar-0-2__n30_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29 KB
..._reference/octagon_Octagon_31_data-reactrootnothasSidebar-0-2__n31_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.4 KB
..._reference/octagon_Octagon_32_data-reactrootnothasSidebar-0-2__n32_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+35.5 KB
..._reference/octagon_Octagon_33_data-reactrootnothasSidebar-0-2__n33_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+217 Bytes
..._reference/octagon_Octagon_34_data-reactrootnothasSidebar-0-2__n34_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+5.69 KB
..._reference/octagon_Octagon_35_data-reactrootnothasSidebar-0-2__n35_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+4.93 KB
..._reference/octagon_Octagon_36_data-reactrootnothasSidebar-0-2__n36_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+727 Bytes
..._reference/octagon_Octagon_37_data-reactrootnothasSidebar-0-2__n37_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+20.7 KB
..._reference/octagon_Octagon_38_data-reactrootnothasSidebar-0-2__n38_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+1.92 KB
..._reference/octagon_Octagon_39_data-reactrootnothasSidebar-0-2__n39_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+3.29 KB
...ps_reference/octagon_Octagon_3_data-reactrootnothasSidebar-0-2__n3_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+4.32 KB
..._reference/octagon_Octagon_40_data-reactrootnothasSidebar-0-2__n40_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+12.9 KB
..._reference/octagon_Octagon_41_data-reactrootnothasSidebar-0-2__n41_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+1.73 KB
..._reference/octagon_Octagon_42_data-reactrootnothasSidebar-0-2__n42_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+6.73 KB
..._reference/octagon_Octagon_43_data-reactrootnothasSidebar-0-2__n43_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+9.14 KB
..._reference/octagon_Octagon_44_data-reactrootnothasSidebar-0-2__n44_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+216 Bytes
..._reference/octagon_Octagon_45_data-reactrootnothasSidebar-0-2__n45_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+427 Bytes
..._reference/octagon_Octagon_46_data-reactrootnothasSidebar-0-2__n46_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+3.08 KB
..._reference/octagon_Octagon_47_data-reactrootnothasSidebar-0-2__n47_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+4.09 KB
..._reference/octagon_Octagon_48_data-reactrootnothasSidebar-0-2__n48_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+3.51 KB
..._reference/octagon_Octagon_49_data-reactrootnothasSidebar-0-2__n49_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+643 Bytes
...ps_reference/octagon_Octagon_4_data-reactrootnothasSidebar-0-2__n4_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+4.52 KB
..._reference/octagon_Octagon_50_data-reactrootnothasSidebar-0-2__n50_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+834 Bytes
...ps_reference/octagon_Octagon_5_data-reactrootnothasSidebar-0-2__n5_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+20.1 KB
...ps_reference/octagon_Octagon_6_data-reactrootnothasSidebar-0-2__n6_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+2.03 KB
...ps_reference/octagon_Octagon_7_data-reactrootnothasSidebar-0-2__n7_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+6.8 KB
...ps_reference/octagon_Octagon_8_data-reactrootnothasSidebar-0-2__n8_0_tablet.png
Oops, something went wrong.
Binary file added
BIN
+3.87 KB
...ps_reference/octagon_Octagon_9_data-reactrootnothasSidebar-0-2__n9_0_tablet.png
Oops, something went wrong.
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,16 @@ | ||
module.exports = function (casper, scenario, vp) { | ||
// This script runs before your app loads. Edit here to log-in, load cookies or set other states required for your test. | ||
console.log('onBefore.js has run for ' + vp.name + '.') | ||
} | ||
|
||
// // EXAMPLE: LOGIN BEFORE RUNNING TESTS | ||
// module.exports = function(casper, scenario, vp) { | ||
// casper.thenOpen(scenario.url, function(){ | ||
// if (this.exists('form#user-login-form')) { | ||
// this.fill('form#loginForm',{ | ||
// 'username': 'test', | ||
// 'password': 'changeme' | ||
// }, 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = function (casper, scenario, vp) { | ||
casper.evaluate(function () { | ||
// Your web-app is now loaded. Edit here to simulate user interacions or other state changes. | ||
}) | ||
console.log('onReady.js has run for: ', vp.name) | ||
} |
25 changes: 25 additions & 0 deletions
25
backstop_data/engine_scripts/casper/clickAndHoverHelper.js
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,25 @@ | ||
var WAIT_TIMEOUT = 5000; | ||
|
||
module.exports = function(casper, scenario) { | ||
var waitFor = require('./waitForHelperHelper')(casper, WAIT_TIMEOUT); | ||
var hoverSelector = scenario.hoverSelector, | ||
clickSelector = scenario.clickSelector, | ||
postInteractionWait = scenario.postInteractionWait; | ||
|
||
if (hoverSelector) { | ||
waitFor(hoverSelector); | ||
casper.then(function () { | ||
casper.mouse.move(hoverSelector); | ||
}); | ||
} | ||
|
||
if (clickSelector) { | ||
waitFor(clickSelector); | ||
casper.then(function () { | ||
casper.click(clickSelector); | ||
}); | ||
} | ||
|
||
// TODO: if postInteractionWait === integer then do ==> wait(postInteractionWait) || elsevvv | ||
waitFor(postInteractionWait); | ||
}; |
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,15 @@ | ||
var fs = require('fs'); | ||
|
||
module.exports = function (casper, scenario) { | ||
var cookies = []; | ||
var cookiePath = scenario.cookiePath; | ||
|
||
// READ COOKIES FROM FILE IF EXISTS | ||
if (fs.exists(cookiePath)) { | ||
cookies = JSON.parse(fs.read(cookiePath)); | ||
} | ||
|
||
casper.page.cookies = cookies; | ||
console.log('Cookie state restored with cookies:', JSON.stringify(cookies, null, 2)); | ||
casper.userAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36'); | ||
}; |
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,4 @@ | ||
module.exports = function (casper, scenario, vp) { | ||
require('./loadCookies')(casper, scenario); | ||
casper.userAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36'); | ||
}; |
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,5 @@ | ||
module.exports = function(casper, scenario, vp) { | ||
console.log('SCENARIO> ' + scenario.label); | ||
require('./clickAndHoverHelper')(casper, scenario); | ||
// add more helpers here... | ||
}; |
18 changes: 18 additions & 0 deletions
18
backstop_data/engine_scripts/casper/waitForHelperHelper.js
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,18 @@ | ||
var TIMEOUT_DEFAULT = 2000; | ||
|
||
module.exports = function (casper, timeout) { | ||
var TIMEOUT = timeout || TIMEOUT_DEFAULT; | ||
|
||
return function waitFor (selector) { | ||
if (selector) { | ||
casper.waitForSelector( | ||
selector, | ||
function () {}, | ||
function () { | ||
console.error('NOT FOUND > ' + selector); | ||
}, | ||
TIMEOUT | ||
); | ||
} | ||
}; | ||
}; |
24 changes: 24 additions & 0 deletions
24
backstop_data/engine_scripts/chromy/clickAndHoverHelper.js
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,24 @@ | ||
module.exports = function (chromy, scenario) { | ||
var hoverSelector = scenario.hoverSelector; | ||
var clickSelector = scenario.clickSelector; | ||
var postInteractionWait = scenario.postInteractionWait; // selector [str] | ms [int] | ||
|
||
if (hoverSelector) { | ||
chromy | ||
.wait(hoverSelector) | ||
.rect(hoverSelector) | ||
.result(function (rect) { | ||
chromy.mouseMoved(rect.left, rect.top); | ||
}); | ||
} | ||
|
||
if (clickSelector) { | ||
chromy | ||
.wait(clickSelector) | ||
.click(clickSelector); | ||
} | ||
|
||
if (postInteractionWait) { | ||
chromy.wait(postInteractionWait); | ||
} | ||
}; |
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,22 @@ | ||
var fs = require('fs'); | ||
|
||
module.exports = function (chromy, scenario) { | ||
var cookies = []; | ||
var cookiePath = scenario.cookiePath; | ||
|
||
// READ COOKIES FROM FILE IF EXISTS | ||
if (fs.existsSync(cookiePath)) { | ||
cookies = JSON.parse(fs.readFileSync(cookiePath)); | ||
} | ||
|
||
// MUNGE COOKIE DOMAIN FOR CHROMY USAGE | ||
cookies = cookies.map(cookie => { | ||
cookie.url = 'https://' + cookie.domain; | ||
delete cookie.domain; | ||
return cookie; | ||
}); | ||
|
||
// SET COOKIES VIA CHROMY | ||
chromy.setCookie(cookies); | ||
console.log('Cookie state restored with:', JSON.stringify(cookies, null, 2)); | ||
}; |
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,6 @@ | ||
module.exports = function (chromy, scenario, vp) { | ||
require('./loadCookies')(chromy, scenario); | ||
|
||
// IGNORE ANY CERT WARNINGS | ||
chromy.ignoreCertificateErrors(); | ||
}; |
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,5 @@ | ||
module.exports = function (chromy, scenario, vp) { | ||
console.log('SCENARIO > ' + scenario.label); | ||
require('./clickAndHoverHelper')(chromy, scenario); | ||
// add more ready handlers here... | ||
}; |
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,14 @@ | ||
[ | ||
{ | ||
"domain": ".www.yourdomain.com", | ||
"path": "/", | ||
"name": "yourCookieName", | ||
"value": "yourCookieValue", | ||
"expirationDate": 1798790400, | ||
"hostOnly": false, | ||
"httpOnly": false, | ||
"secure": false, | ||
"session": false, | ||
"sameSite": "no_restriction" | ||
} | ||
] |
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,4 @@ | ||
module.exports = function (engine, scenario, vp) { | ||
// This script runs before your app loads. Edit here to log-in, load cookies or set other states required for your test. | ||
console.log('onBefore.js has run for ' + vp.label + '.'); | ||
}; |
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,6 @@ | ||
module.exports = function (engine, scenario, vp) { | ||
engine.evaluate(function () { | ||
// Your web-app is now loaded. Edit here to simulate user interacions or other state changes in the browser window context. | ||
}); | ||
console.log('onReady.js has run for: ', vp.label); | ||
}; |
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,9 +1,8 @@ | ||
module.exports = { | ||
plugins: [ | ||
require('postcss-import'), | ||
require('postcss-cssnext'), // permit future css rules | ||
require('postcss-neat'), // @TODO investigate purging? may be unused | ||
require('rucksack-css'), // css function superset (e.g. less like syntax) | ||
require('autoprefixer')({ browsers: ['last 2 version'] }) | ||
require('postcss-cssnext'), // permit future css rules | ||
require('postcss-neat') // @TODO investigate purging? may be unused | ||
] | ||
} |
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
Oops, something went wrong.