feat(aio): add initial doc viewer
with lots of fixes from Igor and Ward <3
This commit is contained in:
@ -7,8 +7,10 @@ describe('site App', function() {
|
||||
page = new SitePage();
|
||||
});
|
||||
|
||||
it('should display message saying app works', () => {
|
||||
it('should show features text after clicking "Features"', () => {
|
||||
page.navigateTo();
|
||||
expect(page.getParagraphText()).toEqual('home-page works!');
|
||||
page.featureLink.click().then(() => {
|
||||
expect(page.getDocViewerText()).toContain('Progressive web apps');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -1,11 +1,14 @@
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
export class SitePage {
|
||||
|
||||
featureLink = element(by.css('md-toolbar a[aioNavLink=features]'));
|
||||
|
||||
navigateTo() {
|
||||
return browser.get('/');
|
||||
}
|
||||
|
||||
getParagraphText() {
|
||||
return element(by.css('app-home-page p')).getText();
|
||||
getDocViewerText() {
|
||||
return element(by.css('aio-doc-viewer')).getText();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user