Skip to content

Commit eb63a30

Browse files
committed
refined test scripts a bit
1 parent 60ba3e9 commit eb63a30

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎tests/frontend-regression-tests/test-load-from-URL.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ casper.test.begin('Testing page loads from URL strings', function (test) {
4444
// start with a baseline image
4545
casper.start();
4646
casper.viewport(1440, 900);
47+
casper.options.waitTimeout = 10000; // longer default timeout
4748

4849
casper.each(urlFragments, function then(self, e) {
4950
var urlFrag = e;
@@ -103,14 +104,13 @@ casper.test.begin('Testing page loads from URL strings', function (test) {
103104

104105

105106
self.thenOpen('about:blank');
106-
self.echo(liveHtml);
107107
self.thenOpen(liveHtml, function() {
108108
casper.waitFor(function check() {
109109
return this.evaluate(function() {
110110
return document.querySelectorAll("#dataViz").length > 0;
111111
});
112112
}, function then() {
113-
phantomcss.screenshot('body', 'testLiveMode'); // full screenshot!
113+
phantomcss.screenshot('body', 'testLiveMode'); // full-page screenshot!
114114
});
115115
});
116116
});

‎v5-unity/README.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Requires these global installations:
2727
npm install webpack -g
2828
npm install webpack-dev-server -g
2929

30+
[you might need to install webpack locally (without the -g) ... weird]
31+
3032
If you run: webpack-dev-server --progress --colors
3133

3234
then your code will automatically recompile and be refreshed here:

0 commit comments

Comments
 (0)