test(aio): remove unnecessary hack from e2e tests (#14356)
May address #14347.
This commit is contained in:
parent
44bb337acc
commit
b988733553
|
@ -3,34 +3,20 @@ import { SitePage } from './app.po';
|
||||||
describe('site App', function() {
|
describe('site App', function() {
|
||||||
let page: SitePage;
|
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(() => {
|
beforeEach(() => {
|
||||||
page = new SitePage();
|
page = new SitePage();
|
||||||
|
page.navigateTo();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should show features text after clicking "Features"', () => {
|
it('should show features text after clicking "Features"', () => {
|
||||||
page.navigateTo()
|
page.featureLink.click().then(() => {
|
||||||
.then(() => {
|
expect(page.getDocViewerText()).toContain('Progressive web apps');
|
||||||
return page.featureLink.click();
|
});
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
expect(page.getDocViewerText()).toContain('Progressive web apps');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should convert code-example in pipe.html', () => {
|
it('should convert code-example in pipe.html', () => {
|
||||||
page.navigateTo()
|
page.datePipeLink.click().then(() => {
|
||||||
.then(() => {
|
expect(page.codeExample.count()).toBeGreaterThan(0, 'should have code-example content');
|
||||||
return page.datePipeLink.click();
|
});
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
expect(page.codeExample.count()).toBeGreaterThan(0, 'should have code-example content');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue