diff options
Diffstat (limited to 'test/e2e/docsAppE2E.js')
| -rw-r--r-- | test/e2e/docsAppE2E.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/e2e/docsAppE2E.js b/test/e2e/docsAppE2E.js index da0726b8..8fe30c38 100644 --- a/test/e2e/docsAppE2E.js +++ b/test/e2e/docsAppE2E.js @@ -39,22 +39,31 @@ describe('docs.angularjs.org', function () { 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'); }); + + + it('should display formatted error messages on error doc pages', function() { + browser.get('index-debug.html#!error/ng/areq?p0=Missing&p1=not%20a%20function,%20got%20undefined'); + expect(element(by.css('.minerr-errmsg')).getText()).toEqual("Argument 'Missing' is not a function, got undefined"); + }); }); });
\ No newline at end of file |
