MOBILE-4245 credentials: Fix contact support suggestion test
parent
1506228c74
commit
552cda8a5b
|
@ -69,7 +69,7 @@ describe('Credentials page', () => {
|
||||||
expect(findElement(fixture, '.core-siteurl', siteUrl)).not.toBeNull();
|
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.
|
// Arrange.
|
||||||
mockSingleton(CoreSites, {
|
mockSingleton(CoreSites, {
|
||||||
getUserToken: () => {
|
getUserToken: () => {
|
||||||
|
@ -87,8 +87,6 @@ describe('Credentials page', () => {
|
||||||
imports: [CoreSharedModule, CoreLoginComponentsModule],
|
imports: [CoreSharedModule, CoreLoginComponentsModule],
|
||||||
});
|
});
|
||||||
|
|
||||||
done();
|
|
||||||
|
|
||||||
// Act.
|
// Act.
|
||||||
const form = requireElement<HTMLFormElement>(fixture, 'form');
|
const form = requireElement<HTMLFormElement>(fixture, 'form');
|
||||||
const formControls = fixture.componentInstance.credForm.controls;
|
const formControls = fixture.componentInstance.credForm.controls;
|
||||||
|
@ -98,8 +96,6 @@ describe('Credentials page', () => {
|
||||||
|
|
||||||
for (let i = 0; i < 3; i++) {
|
for (let i = 0; i < 3; i++) {
|
||||||
form.submit();
|
form.submit();
|
||||||
|
|
||||||
await fixture.whenRenderingDone();
|
|
||||||
await fixture.whenStable();
|
await fixture.whenStable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue