https://github.com/angular/angular
Raw File
Tip revision: ca517d7f2c38775969a65fde1d88f41ad5f27931 authored by Joey Perrott on 18 April 2024, 17:34:33 UTC
refactor: migrate language-service to prettier formatting (#55405)
Tip revision: ca517d7
app.e2e-spec.ts
import {browser, logging} from 'protractor';

import {AppPage} from './app.po';

describe('forms app', () => {
  let page: AppPage;

  beforeEach(() => {
    page = new AppPage();
  });

  it('should display title', () => {
    page.navigateTo();
    expect(page.getTitleText()).toEqual('Forms 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),
    );
  });
});
back to top