Skip to content

Commit 6c88453

Browse files
petebacondarwinSebastien Armand - sa250111
authored and
Sebastien Armand - sa250111
committed
test(docs): add check for resilience to trailing slashes, etc.
1 parent 0b139d3 commit 6c88453

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/e2e/docsAppE2E.js

+18
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,23 @@ describe('docs.angularjs.org', function () {
3838
var code = element(by.css('tt'));
3939
expect(code.getText()).toContain('guest!!!');
4040
});
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+
});
4159
});
4260
});

0 commit comments

Comments
 (0)