-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed user authentication/registration accessibility issue
- Added the correct autocomplete value - Removed dangling labels, because aria labels already describe those input fields & we can't use ids in this component because otherwise there are duplicate ids on the /login page
- Loading branch information
1 parent
d7017ca
commit 60cba0d
Showing
7 changed files
with
26 additions
and
20 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
src/app/forgot-password/forgot-password-form/forgot-password-form.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ import { | |
createSuccessfulRemoteDataObject$ | ||
} from '../../shared/remote-data.utils'; | ||
import { CoreState } from '../../core/core-state.model'; | ||
import { BrowserOnlyPipe } from '../../shared/utils/browser-only.pipe'; | ||
|
||
describe('ForgotPasswordFormComponent', () => { | ||
let comp: ForgotPasswordFormComponent; | ||
|
@@ -54,7 +55,10 @@ describe('ForgotPasswordFormComponent', () => { | |
|
||
TestBed.configureTestingModule({ | ||
imports: [CommonModule, RouterTestingModule.withRoutes([]), TranslateModule.forRoot(), ReactiveFormsModule], | ||
declarations: [ForgotPasswordFormComponent], | ||
declarations: [ | ||
BrowserOnlyPipe, | ||
ForgotPasswordFormComponent, | ||
], | ||
providers: [ | ||
{provide: Router, useValue: router}, | ||
{provide: ActivatedRoute, useValue: route}, | ||
|
@@ -75,7 +79,7 @@ describe('ForgotPasswordFormComponent', () => { | |
|
||
describe('init', () => { | ||
it('should initialise mail address', () => { | ||
const elem = fixture.debugElement.queryAll(By.css('span#email'))[0].nativeElement; | ||
const elem = fixture.debugElement.queryAll(By.css('span[data-test="email"]'))[0].nativeElement; | ||
expect(elem.innerHTML).toContain('[email protected]'); | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
src/app/shared/log-in/methods/password/log-in-password.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters