https://github.com/angular/angular
Raw File
Tip revision: be7becae9aa52fc824a8fd16c3d725ab1bd96092 authored by Alex Rickabaugh on 14 December 2023, 01:10:12 UTC
release: cut the v17.1.0-next.4 release
Tip revision: be7beca
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