From 4f937bda18bd577febcb29e3969fe72b400d1a61 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Tue, 18 Feb 2014 06:35:44 +0000 Subject: test(docs): add check for resilience to trailing slashes, etc. --- test/e2e/docsAppE2E.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/e2e/docsAppE2E.js b/test/e2e/docsAppE2E.js index cf05c451..da0726b8 100644 --- a/test/e2e/docsAppE2E.js +++ b/test/e2e/docsAppE2E.js @@ -38,5 +38,23 @@ describe('docs.angularjs.org', function () { var code = element(by.css('tt')); expect(code.getText()).toContain('guest!!!'); }); + + it('should be resilient to trailing slashes', function() { + browser.get('index-debug.html#!/api/ng/function/angular.noop/'); + var pageBody = element(by.css('h1')); + expect(pageBody.getText()).toEqual('angular.noop'); + }); + + it('should be resilient to trailing "index"', function() { + browser.get('index-debug.html#!/api/ng/function/angular.noop/index'); + var pageBody = element(by.css('h1')); + expect(pageBody.getText()).toEqual('angular.noop'); + }); + + it('should be resilient to trailing "index/"', function() { + browser.get('index-debug.html#!/api/ng/function/angular.noop/index/'); + var pageBody = element(by.css('h1')); + expect(pageBody.getText()).toEqual('angular.noop'); + }); }); }); \ No newline at end of file -- cgit v1.2.3