Skip to content
Snippets Groups Projects
Commit 150296d5 authored by rhenck's avatar rhenck
Browse files

Improve e2e test to smoke test login screen

There were errors on the console about unfound backend paths. No the 
test fails when such errors appear.
parent f39b5ca9
No related branches found
No related tags found
No related merge requests found
import { browser, logging } from 'protractor';
import LoginPage from './app.po';
describe('Testcenter Frontend', () => {
......@@ -6,4 +8,12 @@ describe('Testcenter Frontend', () => {
await expect(LoginPage.getFirstCardTitle()).toEqual('Anmelden');
await expect(LoginPage.getSecondCardTitle()).toEqual('IQB-Testcenter');
});
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));
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment