changed login username input to email and changed test
This commit is contained in:
parent
a5b73c7e59
commit
0688685676
2 changed files with 3 additions and 3 deletions
|
@ -12,9 +12,9 @@ describe('Login Page', () => {
|
||||||
expect(page.getLoginHeaderText()).toEqual('Login');
|
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.isUsernameFieldPresent()).toBeTruthy();
|
||||||
expect(page.getUsernameFieldType()).toBe('text');
|
expect(page.getUsernameFieldType()).toEqual('email');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should have a password box of type password', () => {
|
it('should have a password box of type password', () => {
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<form [formGroup]="signin" (ngSubmit)="onSubmit()">
|
<form [formGroup]="signin" (ngSubmit)="onSubmit()">
|
||||||
<div class="input-group mb-3">
|
<div class="input-group mb-3">
|
||||||
<span class="input-group-addon">@</span>
|
<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>
|
||||||
<div class="input-group mb-4">
|
<div class="input-group mb-4">
|
||||||
<span class="input-group-addon"><i class="icon-lock"></i></span>
|
<span class="input-group-addon"><i class="icon-lock"></i></span>
|
||||||
|
|
Reference in a new issue