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 = {
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 ( )
You can’t perform that action at this time.
0 commit comments