Projekt

Obecné

Profil

Stáhnout (658 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 ee1670e3 hlavja
import { browser, logging } from 'protractor';
2
import { AppPage } from './app.po';
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', async () => {
12
    await page.navigateTo();
13
    expect(await page.getTitleText()).toEqual('SensLog app is running!');
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
});