ACS-8770: fixes searchPanel unit test removing redundant await of CD circle

This commit is contained in:
Anton Ramanovich
2025-06-23 07:22:27 +02:00
parent 4d8439ffb0
commit 66f5a4081a

View File

@@ -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);
});