blob: e399c42a31d15c1074b3cf9c8b62b4a0b3d3745b [file] [log] [blame]
Shaaban Ebrahim6cc77cb2019-11-11 10:51:21 +02001import { AppPage } from './app.po';
2import { browser, logging } from 'protractor';
3
4describe('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();
Ahmed Abbas1b8623b2019-12-05 15:50:20 +020013 expect(page.getTitleText()).toEqual('designer-client app is running!');
Shaaban Ebrahim6cc77cb2019-11-11 10:51:21 +020014 });
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});