[AAE-30877] - At this point is just try and error

This commit is contained in:
VitoAlbano
2025-03-15 10:29:54 +00:00
committed by Wojciech Duda
parent f6566d4bb9
commit 3412a02ef6
2 changed files with 7 additions and 4 deletions

View File

@@ -381,14 +381,16 @@ fdescribe('Test PdfViewer - Zoom customization', () => {
});
describe('custom value', () => {
beforeEach(async () => {
beforeEach((done) => {
const appConfig: AppConfigService = TestBed.inject(AppConfigService);
appConfig.config['adf-viewer.pdf-viewer-scaling'] = 80;
fixtureUrlTestComponent.detectChanges();
await fixtureUrlTestComponent.whenRenderingDone();
await firstValueFrom(componentUrlTestComponent.pdfViewerComponent.rendered);
firstValueFrom(componentUrlTestComponent.pdfViewerComponent.rendered).then(() => {
done();
});
}, 55000);
it('should use the custom zoom if it is present in the app.config', fakeAsync(() => {
spyOn(componentUrlTestComponent.pdfViewerComponent.pdfViewer, 'forceRendering').and.callFake(() => {});

View File

@@ -16,3 +16,4 @@
*/
import 'jest-preset-angular/setup-jest';
import 'resize-observer-polyfill/dist/ResizeObserver.global';