Skip to content
Snippets Groups Projects
app.e2e-spec.ts 650 B
Newer Older
  • Learn to ignore specific revisions
  • import { browser, logging } from 'protractor';
    
    
    import LoginPage from './app.po';
    
    Martin Mechtel's avatar
    Martin Mechtel committed
    
    
    describe('Testcenter Frontend', () => {
      it('should display title texts', async () => {
        await LoginPage.navigateTo();
        await expect(LoginPage.getFirstCardTitle()).toEqual('Anmelden');
        await expect(LoginPage.getSecondCardTitle()).toEqual('IQB-Testcenter');
    
    Martin Mechtel's avatar
    Martin Mechtel committed
      });
    
    
      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));
      });
    
    Martin Mechtel's avatar
    Martin Mechtel committed
    });