source: trip-planner-front/node_modules/@schematics/angular/e2e/files/src/app.e2e-spec.ts.template@ 6fe77af

Last change on this file since 6fe77af was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 672 bytes
Line 
1import { browser, logging } from 'protractor';
2import { AppPage } from './app.po';
3
4describe('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('<%= relatedAppName %> 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});
Note: See TracBrowser for help on using the repository browser.