angular/integration/cli-elements-universal/e2e/src/app.e2e-spec.ts
George Kalpakas 177eab2260 ci: add integration test for Angular Elemens with SSR (#40559)
This commit adds an integration test that uses `@angular/elements` with
`@angular/platform-server` in order to highlight a current
incompatibility. The issue will be fixed in a subsequent commit.

PR Close #40559
2021-02-12 08:55:25 -08:00

22 lines
667 B
TypeScript

import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
afterEach(async () => {
// Assert that there are no errors emitted from the browser.
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
const errorLogs = logs.filter(({level}) => level === logging.Level.SEVERE);
expect(errorLogs).toEqual([]);
});
it('should display welcome message', async () => {
await page.navigateTo();
expect(await page.getTitleText()).toBe('cli-elements-universal app is running!');
});
});