We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3940249 commit fac5b38Copy full SHA for fac5b38
test/e2e/runner.js
@@ -13,6 +13,9 @@ var i = args.indexOf('--test')
13
if (i > -1) {
14
args[i + 1] = 'test/e2e/specs/' + args[i + 1]
15
}
16
+if (args.indexOf('phantomjs') > -1) {
17
+ process.env.PHANTOMJS = true
18
+}
19
20
var runner = spawn('./node_modules/.bin/nightwatch', args, {
21
stdio: 'inherit'
test/e2e/specs/navigation-guards.js
@@ -1,5 +1,10 @@
1
module.exports = {
2
'navigation guards': function (browser) {
3
+ // alert commands not available in phantom
4
+ if (process.env.PHANTOMJS) {
5
+ return
6
+ }
7
+
8
browser
9
.url('http://localhost:8080/navigation-guards/')
10
.waitForElementVisible('#app', 1000)
0 commit comments