Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Make e2e login test more stable #823

Merged
merged 1 commit into from
Aug 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixed `picture.path` backslash issue / regression. [#729](https://github.com/utetrapp/geli/issues/729)
- Replaced hard-coded `'upload'` strings in the API with `config.uploadFolder`. [#729](https://github.com/utetrapp/geli/issues/729)
- Fixed missing `@UseBefore` middleware in `MediaController`. [#729](https://github.com/utetrapp/geli/issues/729)
- Make e2e login test more stable. [#823](https://github.com/utetrapp/geli/pull/823)

### Security
- Secured the static `'uploads'` route by introducing a special `'mediaToken'` with new JWT strategy & middleware. [#729](https://github.com/utetrapp/geli/issues/729)
Expand Down
2 changes: 2 additions & 0 deletions app/webFrontend/e2e/login.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {WebFrontendLogin} from './app.po';
import {browser} from 'protractor';

describe('Login-form', () => {
let page: WebFrontendLogin;
Expand Down Expand Up @@ -31,6 +32,7 @@ describe('Login-form', () => {
password.sendKeys('test1234');

await page.getLoginButton().click();
await browser.waitForAngular(); // ensure that there are no running http requests
expect(page.getSnackBar().getText()).toContain('Login successful');
});
});