37 lines
944 B
TypeScript
37 lines
944 B
TypeScript
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();
|
|
});
|
|
|
|
it('should show features text after clicking "Features"', () => {
|
|
page.navigateTo()
|
|
.then(() => {
|
|
return page.featureLink.click();
|
|
})
|
|
.then(() => {
|
|
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');
|
|
});
|
|
});
|
|
});
|