File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -77,9 +77,10 @@ module.exports = {
77
77
. dismissAlert ( )
78
78
. waitFor ( 100 )
79
79
. 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' )
83
84
84
85
. url ( 'http://localhost:8080/navigation-guards/foo' )
85
86
. acceptAlert ( )
@@ -90,9 +91,10 @@ module.exports = {
90
91
. dismissAlert ( )
91
92
. waitFor ( 100 )
92
93
. 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' )
96
98
97
99
. url ( 'http://localhost:8080/navigation-guards/bar' )
98
100
. acceptAlert ( )
You can’t perform that action at this time.
0 commit comments