changed login username input to email and changed test

This commit is contained in:
piratefinn 2017-11-13 15:49:17 +00:00
parent e1230c770a
commit 1739e998a5
2 changed files with 3 additions and 3 deletions

View file

@ -12,9 +12,9 @@ describe('Login Page', () => {
expect(page.getLoginHeaderText()).toEqual('Login');
});
it('should have a username box of type text', () => {
it('should have a username box of type email', () => {
expect(page.isUsernameFieldPresent()).toBeTruthy();
expect(page.getUsernameFieldType()).toBe('text');
expect(page.getUsernameFieldType()).toEqual('email');
});
it('should have a password box of type password', () => {

View file

@ -10,7 +10,7 @@
<form [formGroup]="signin" (ngSubmit)="onSubmit()">
<div class="input-group mb-3">
<span class="input-group-addon">@</span>
<input id="username" type="text" class="form-control" formControlName="email" placeholder="Email">
<input id="username" type="email" class="form-control" formControlName="email" placeholder="Email">
</div>
<div class="input-group mb-4">
<span class="input-group-addon"><i class="icon-lock"></i></span>