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:
@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user