feat(aio): refactor DocViewer w/ services component builder (#14294)

Adds basic functionality to fetch documents and display them based on the v42 prototype 

https://github.com/igorMinar/angular-io-v42
This commit is contained in:
Ward Bell
2017-02-07 12:57:18 -08:00
committed by Igor Minar
parent a378aab9aa
commit 2e1413016e
21 changed files with 915 additions and 49 deletions

View File

@ -3,6 +3,13 @@ import { SitePage } from './app.po';
describe('site App', function() {
let page: SitePage;
beforeAll(done => {
// Hack: CI has been failing on first test so
// buying time by giving the browser a wake-up call.
// Todo: Find and fix the root cause for flakes.
new SitePage().navigateTo().then(done);
});
beforeEach(() => {
page = new SitePage();
});
@ -16,4 +23,14 @@ describe('site App', function() {
expect(page.getDocViewerText()).toContain('Progressive web apps');
});
});
it('should convert code-example in pipe.html', () => {
page.navigateTo()
.then(() => {
return page.datePipeLink.click();
})
.then(() => {
expect(page.codeExample.count()).toBeGreaterThan(0, 'should have code-example content');
});
});
});