ACS-8770: fixes site selection unit test setup

This commit is contained in:
Anton Ramanovich
2025-07-21 13:36:17 +02:00
parent 2876d09e74
commit 4d8439ffb0
@@ -131,10 +131,10 @@ describe('ContentNodeSelectorPanelComponent', () => {
expect(lastValue).toBe('fake-site');
});
it('should trigger siteChange event when a site is selected in sites-dropdown', async () => {
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();
await fixture.whenStable();
let lastValue: string;
component.siteChange.subscribe((siteTitle: string) => (lastValue = siteTitle));