From e1c3b8580bac9baadf44574ad8bf36f335bb2e95 Mon Sep 17 00:00:00 2001 From: Peter Chapman Date: Wed, 10 Apr 2024 10:23:39 +1200 Subject: [PATCH] Fix failing tests (side effect of the order tests are run with this PR) --- .../xforge-common/error-dialog/error-dialog.component.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/error-dialog/error-dialog.component.spec.ts b/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/error-dialog/error-dialog.component.spec.ts index e277f7015f..5b49254a77 100644 --- a/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/error-dialog/error-dialog.component.spec.ts +++ b/src/SIL.XForge.Scripture/ClientApp/src/xforge-common/error-dialog/error-dialog.component.spec.ts @@ -1,7 +1,7 @@ import { OverlayContainer } from '@angular/cdk/overlay'; import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; -import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing'; +import { ComponentFixture, fakeAsync, flush, TestBed } from '@angular/core/testing'; import { MatLegacyDialog as MatDialog, MatLegacyDialogConfig as MatDialogConfig @@ -52,6 +52,7 @@ describe('ErrorDialogComponent', () => { expect(env.stackTrace).toBeNull(); env.closeButton.click(); + flush(); })); it('should not render "Show details" link when no stack trace', fakeAsync(() => { @@ -64,6 +65,7 @@ describe('ErrorDialogComponent', () => { expect(env.stackTrace).toBeNull(); env.closeButton.click(); + flush(); })); });