Skip to content

Commit 573f9e3

Browse files
committed
fix navigation guard tests
1 parent 3455d74 commit 573f9e3

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/e2e/specs/navigation-guards.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ module.exports = {
7777
.dismissAlert()
7878
.waitFor(100)
7979
.dismissAlert()
80-
// redirects to root by default
81-
.assert.urlEquals('http://localhost:8080/navigation-guards/')
82-
.assert.containsText('.view', 'home')
80+
// url works
81+
.assert.urlEquals('http://localhost:8080/navigation-guards/foo')
82+
// but should not render anything
83+
.assert.elementNotPresent('.view')
8384

8485
.url('http://localhost:8080/navigation-guards/foo')
8586
.acceptAlert()
@@ -90,9 +91,10 @@ module.exports = {
9091
.dismissAlert()
9192
.waitFor(100)
9293
.dismissAlert()
93-
// redirects to root by default
94-
.assert.urlEquals('http://localhost:8080/navigation-guards/')
95-
.assert.containsText('.view', 'home')
94+
// url works
95+
.assert.urlEquals('http://localhost:8080/navigation-guards/bar')
96+
// but should not render anything
97+
.assert.elementNotPresent('.view')
9698

9799
.url('http://localhost:8080/navigation-guards/bar')
98100
.acceptAlert()

0 commit comments

Comments
 (0)