import { FusePage } from './app.po'; import { browser, logging } from 'protractor'; describe('Fuse App', () => { let page: FusePage; beforeEach(() => { page = new FusePage(); }); it('should display welcome message', () => { page.navigateTo(); expect(page.getParagraphText()).toEqual('Welcome to Fuse!'); }); 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)); }); });