mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
22 lines
667 B
TypeScript
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!');
|
|
});
|
|
});
|