Project

General

Profile

1
import { AppPage } from './app.po';
2
import { browser, logging } from 'protractor';
3

    
4
describe('workspace-project App', () => {
5
  let page: AppPage;
6

    
7
  beforeEach(() => {
8
    page = new AppPage();
9
  });
10

    
11
  it('should display welcome message', () => {
12
    page.navigateTo();
13
    expect(page.getTitleText()).toEqual('Welcome to usage-counts!');
14
  });
15

    
16
  afterEach(async () => {
17
    // Assert that there are no errors emitted from the browser
18
    const logs = await browser.manage().logs().get(logging.Type.BROWSER);
19
    expect(logs).not.toContain(jasmine.objectContaining({
20
      level: logging.Level.SEVERE,
21
    } as logging.Entry));
22
  });
23
});
(1-1/2)