Shaaban Ebrahim | 6cc77cb | 2019-11-11 10:51:21 +0200 | [diff] [blame] | 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(); |
Ahmed Abbas | 1b8623b | 2019-12-05 15:50:20 +0200 | [diff] [blame] | 13 | expect(page.getTitleText()).toEqual('designer-client app is running!'); |
Shaaban Ebrahim | 6cc77cb | 2019-11-11 10:51:21 +0200 | [diff] [blame] | 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 | }); |