Merge pull request #3592 from alfonso-salces/MOBILE-4245

MOBILE-4245 credentials: Fix contact support suggestion  test
main
Noel De Martin 2023-03-28 08:11:01 +02:00 committed by GitHub
commit ea67ecd6ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -69,7 +69,7 @@ describe('Credentials page', () => {
expect(findElement(fixture, '.core-siteurl', siteUrl)).not.toBeNull();
});
it('suggests contacting support after multiple failed attempts', async (done) => {
it('suggests contacting support after multiple failed attempts', async () => {
// Arrange.
mockSingleton(CoreSites, {
getUserToken: () => {
@ -87,8 +87,6 @@ describe('Credentials page', () => {
imports: [CoreSharedModule, CoreLoginComponentsModule],
});
done();
// Act.
const form = requireElement<HTMLFormElement>(fixture, 'form');
const formControls = fixture.componentInstance.credForm.controls;
@ -98,8 +96,6 @@ describe('Credentials page', () => {
for (let i = 0; i < 3; i++) {
form.submit();
await fixture.whenRenderingDone();
await fixture.whenStable();
}