mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-30877] - At this point is just try and error
This commit is contained in:
committed by
Wojciech Duda
parent
f6566d4bb9
commit
3412a02ef6
@@ -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(() => {});
|
||||
|
@@ -16,3 +16,4 @@
|
||||
*/
|
||||
|
||||
import 'jest-preset-angular/setup-jest';
|
||||
import 'resize-observer-polyfill/dist/ResizeObserver.global';
|
||||
|
Reference in New Issue
Block a user