2017-01-27 03:20:51 -05:00
|
|
|
import { SitePage } from './app.po';
|
|
|
|
|
|
|
|
describe('site App', function() {
|
|
|
|
let page: SitePage;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
page = new SitePage();
|
2017-02-09 20:22:08 -05:00
|
|
|
page.navigateTo();
|
2017-01-27 03:20:51 -05:00
|
|
|
});
|
|
|
|
|
2017-02-02 15:10:47 -05:00
|
|
|
it('should show features text after clicking "Features"', () => {
|
2017-02-09 20:22:08 -05:00
|
|
|
page.featureLink.click().then(() => {
|
|
|
|
expect(page.getDocViewerText()).toContain('Progressive web apps');
|
|
|
|
});
|
2017-01-27 03:20:51 -05:00
|
|
|
});
|
2017-02-07 15:57:18 -05:00
|
|
|
|
|
|
|
it('should convert code-example in pipe.html', () => {
|
2017-02-09 20:22:08 -05:00
|
|
|
page.datePipeLink.click().then(() => {
|
|
|
|
expect(page.codeExample.count()).toBeGreaterThan(0, 'should have code-example content');
|
|
|
|
});
|
2017-02-07 15:57:18 -05:00
|
|
|
});
|
2017-01-27 03:20:51 -05:00
|
|
|
});
|