Skip to content

Commit fac5b38

Browse files
committed
skip navigation guards test on CI
1 parent 3940249 commit fac5b38

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

test/e2e/runner.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ var i = args.indexOf('--test')
1313
if (i > -1) {
1414
args[i + 1] = 'test/e2e/specs/' + args[i + 1]
1515
}
16+
if (args.indexOf('phantomjs') > -1) {
17+
process.env.PHANTOMJS = true
18+
}
1619

1720
var runner = spawn('./node_modules/.bin/nightwatch', args, {
1821
stdio: 'inherit'

test/e2e/specs/navigation-guards.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
module.exports = {
22
'navigation guards': function (browser) {
3+
// alert commands not available in phantom
4+
if (process.env.PHANTOMJS) {
5+
return
6+
}
7+
38
browser
49
.url('http://localhost:8080/navigation-guards/')
510
.waitForElementVisible('#app', 1000)

0 commit comments

Comments
 (0)