test(docsAppE2E): check that param defaults are shown in docs

Closes https://github.com/angular/dgeni-packages/pull/58
This commit is contained in:
Peter Bacon Darwin
2014-08-10 20:06:50 +01:00
parent 33a815d557
commit 37ba3b9493

View File

@@ -68,4 +68,11 @@ describe('docs.angularjs.org', function () {
expect(element(by.css('.minerr-errmsg')).getText()).toEqual("Argument 'Missing' is not a function, got undefined");
});
});
describe("templates", function() {
it("should show parameter defaults", function() {
browser.get('index-debug.html#!/api/ng/service/$timeout');
expect(element.all(by.css('.input-arguments p em')).first().getText()).toContain('(default: 0)');
});
});
});