angular/integration/animations/e2e/src/app.e2e-spec.ts
Jessica Janiuk 112a6cdec3 test(animations): Add bundling size regression test for animations package (#44826)
This adds a size regression test for the animations package to the test suite.

PR Close #44826
2022-01-26 12:54:36 -08:00

24 lines
611 B
TypeScript

import {browser, logging} from 'protractor';
import {AppPage} from './app.po';
describe('animations app', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display title', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('Animations app');
});
afterEach(async () => {
// Assert that there are no errors emitted from the browser
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
expect(logs).not.toContain(jasmine.objectContaining({
level: logging.Level.SEVERE,
} as logging.Entry));
});
});