From 66f5a4081aa784c9c9b45ff12db643b09133354e Mon Sep 17 00:00:00 2001 From: Anton Ramanovich Date: Mon, 23 Jun 2025 07:22:27 +0200 Subject: [PATCH] ACS-8770: fixes searchPanel unit test removing redundant await of CD circle --- .../content-node-selector-panel.component.spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/content-services/src/lib/content-node-selector/content-node-selector-panel/content-node-selector-panel.component.spec.ts b/lib/content-services/src/lib/content-node-selector/content-node-selector-panel/content-node-selector-panel.component.spec.ts index 03a5f34584..46e779db60 100644 --- a/lib/content-services/src/lib/content-node-selector/content-node-selector-panel/content-node-selector-panel.component.spec.ts +++ b/lib/content-services/src/lib/content-node-selector/content-node-selector-panel/content-node-selector-panel.component.spec.ts @@ -133,7 +133,6 @@ describe('ContentNodeSelectorPanelComponent', () => { it('should trigger siteChange event when a site is selected in sites-dropdown', () => { const fakeSiteEntry = new SiteEntry({ entry: new Site({ title: 'fake-new-site', guid: 'fake-new-site' }) }); - component.ngOnInit(); fixture.detectChanges(); let lastValue: string; @@ -698,7 +697,7 @@ describe('ContentNodeSelectorPanelComponent', () => { contentNodeSelectorPanelService.customModels = undefined; }); - it('should search panel be collapsed by default and expand when clicking the filter button', async () => { + it('should search panel be collapsed by default and expand when clicking the filter button', () => { contentNodeSelectorPanelService.customModels = [mockContentModelTextProperty]; fixture.detectChanges(); @@ -708,7 +707,6 @@ describe('ContentNodeSelectorPanelComponent', () => { toggleFiltersPanelButton.nativeElement.click(); fixture.detectChanges(); - await fixture.whenStable(); expect(component.searchPanelExpanded).toEqual(true); });