mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
ACS-8770: fixes searchPanel unit test removing redundant await of CD circle
This commit is contained in:
@@ -133,7 +133,6 @@ describe('ContentNodeSelectorPanelComponent', () => {
|
|||||||
|
|
||||||
it('should trigger siteChange event when a site is selected in sites-dropdown', () => {
|
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' }) });
|
const fakeSiteEntry = new SiteEntry({ entry: new Site({ title: 'fake-new-site', guid: 'fake-new-site' }) });
|
||||||
component.ngOnInit();
|
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
|
|
||||||
let lastValue: string;
|
let lastValue: string;
|
||||||
@@ -698,7 +697,7 @@ describe('ContentNodeSelectorPanelComponent', () => {
|
|||||||
contentNodeSelectorPanelService.customModels = undefined;
|
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];
|
contentNodeSelectorPanelService.customModels = [mockContentModelTextProperty];
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
|
|
||||||
@@ -708,7 +707,6 @@ describe('ContentNodeSelectorPanelComponent', () => {
|
|||||||
toggleFiltersPanelButton.nativeElement.click();
|
toggleFiltersPanelButton.nativeElement.click();
|
||||||
|
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
await fixture.whenStable();
|
|
||||||
|
|
||||||
expect(component.searchPanelExpanded).toEqual(true);
|
expect(component.searchPanelExpanded).toEqual(true);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user