File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -38,5 +38,23 @@ describe('docs.angularjs.org', function () {
38
38
var code = element ( by . css ( 'tt' ) ) ;
39
39
expect ( code . getText ( ) ) . toContain ( 'guest!!!' ) ;
40
40
} ) ;
41
+
42
+ it ( 'should be resilient to trailing slashes' , function ( ) {
43
+ browser . get ( 'index-debug.html#!/api/ng/function/angular.noop/' ) ;
44
+ var pageBody = element ( by . css ( 'h1' ) ) ;
45
+ expect ( pageBody . getText ( ) ) . toEqual ( 'angular.noop' ) ;
46
+ } ) ;
47
+
48
+ it ( 'should be resilient to trailing "index"' , function ( ) {
49
+ browser . get ( 'index-debug.html#!/api/ng/function/angular.noop/index' ) ;
50
+ var pageBody = element ( by . css ( 'h1' ) ) ;
51
+ expect ( pageBody . getText ( ) ) . toEqual ( 'angular.noop' ) ;
52
+ } ) ;
53
+
54
+ it ( 'should be resilient to trailing "index/"' , function ( ) {
55
+ browser . get ( 'index-debug.html#!/api/ng/function/angular.noop/index/' ) ;
56
+ var pageBody = element ( by . css ( 'h1' ) ) ;
57
+ expect ( pageBody . getText ( ) ) . toEqual ( 'angular.noop' ) ;
58
+ } ) ;
41
59
} ) ;
42
60
} ) ;
You can’t perform that action at this time.
0 commit comments