Revert "AAE-35340 Replace deprecated toPromise() usages with firstValueFrom / lastValueFrom (#11161)"

This reverts commit 51c55674b4.
This commit is contained in:
VitoAlbano
2025-09-11 14:10:57 +01:00
parent 7206a6322d
commit c91c2abb1f
27 changed files with 191 additions and 178 deletions
@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { firstValueFrom, of, timer } from 'rxjs';
import { of, timer } from 'rxjs';
import { FormFieldModel, FormModel, GroupModel, FormFieldTypes, UnitTestingUtils } from '@alfresco/adf-core';
import { FunctionalGroupWidgetComponent } from './functional-group.widget';
import { ComponentFixture, TestBed } from '@angular/core/testing';
@@ -64,7 +64,7 @@ describe('FunctionalGroupWidgetComponent', () => {
component.searchTerm.setValue(text);
fixture.detectChanges();
await firstValueFrom(timer(300));
await timer(300).toPromise();
await fixture.whenStable();
fixture.detectChanges();