Skip to content

Commit 268edee

Browse files
committed
fix: resolve ActivityDescription spec timeout in CI
Remove unnecessary await fixture.whenStable() that blocks on unresolved MDC animation tasks in headless Chrome. The component data is set synchronously via @input, so no async wait is needed.
1 parent 02136c5 commit 268edee

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/app/component/activity-description/activity-description.component.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('ActivityDescriptionComponent', () => {
8181
}).compileComponents();
8282
});
8383

84-
beforeEach(async () => {
84+
beforeEach(() => {
8585
fixture = TestBed.createComponent(ActivityDescriptionComponent);
8686
component = fixture.componentInstance;
8787
// Provide the @Input activity before first change detection so ngOnInit uses it
@@ -94,8 +94,6 @@ describe('ActivityDescriptionComponent', () => {
9494
component.activity = activity as any;
9595
}
9696
fixture.detectChanges();
97-
await fixture.whenStable();
98-
fixture.detectChanges();
9997
});
10098

10199
it('should create', () => {

0 commit comments

Comments
 (0)