mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-30877] - fixed the unit test tasks
This commit is contained in:
committed by
Wojciech Duda
parent
33c58d7756
commit
dec21b387d
2
.github/workflows/pull-request.yml
vendored
2
.github/workflows/pull-request.yml
vendored
@@ -198,7 +198,7 @@ jobs:
|
|||||||
echo "matrix=$MATRIX_JSON" >> $GITHUB_OUTPUT
|
echo "matrix=$MATRIX_JSON" >> $GITHUB_OUTPUT
|
||||||
unit-tests:
|
unit-tests:
|
||||||
if: ${{ needs.generate-affected-matrix.outputs.matrix != '' }}
|
if: ${{ needs.generate-affected-matrix.outputs.matrix != '' }}
|
||||||
name: "Unit tests for affected project: ${{ matrix.project }}"
|
name: "Unit tests : ${{ matrix.project }}"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [generate-affected-matrix]
|
needs: [generate-affected-matrix]
|
||||||
strategy:
|
strategy:
|
||||||
|
@@ -388,7 +388,7 @@ describe('Test PdfViewer - Zoom customization', () => {
|
|||||||
fixtureUrlTestComponent.detectChanges();
|
fixtureUrlTestComponent.detectChanges();
|
||||||
await fixtureUrlTestComponent.whenStable();
|
await fixtureUrlTestComponent.whenStable();
|
||||||
await firstValueFrom(componentUrlTestComponent.pdfViewerComponent.rendered);
|
await firstValueFrom(componentUrlTestComponent.pdfViewerComponent.rendered);
|
||||||
}, 55000);
|
});
|
||||||
|
|
||||||
it('should use the custom zoom if it is present in the app.config', fakeAsync(() => {
|
it('should use the custom zoom if it is present in the app.config', fakeAsync(() => {
|
||||||
spyOn(componentUrlTestComponent.pdfViewerComponent.pdfViewer, 'forceRendering').and.callFake(() => {});
|
spyOn(componentUrlTestComponent.pdfViewerComponent.pdfViewer, 'forceRendering').and.callFake(() => {});
|
||||||
@@ -408,7 +408,7 @@ describe('Test PdfViewer - Zoom customization', () => {
|
|||||||
fixtureUrlTestComponent.detectChanges();
|
fixtureUrlTestComponent.detectChanges();
|
||||||
await fixtureUrlTestComponent.whenStable();
|
await fixtureUrlTestComponent.whenStable();
|
||||||
await firstValueFrom(componentUrlTestComponent.pdfViewerComponent.rendered);
|
await firstValueFrom(componentUrlTestComponent.pdfViewerComponent.rendered);
|
||||||
}, 55000);
|
});
|
||||||
|
|
||||||
it('should use the minimum scale zoom if the value given in app.config is less than the minimum allowed scale', async () => {
|
it('should use the minimum scale zoom if the value given in app.config is less than the minimum allowed scale', async () => {
|
||||||
spyOn(componentUrlTestComponent.pdfViewerComponent.pdfViewer, 'forceRendering').and.callFake(() => {});
|
spyOn(componentUrlTestComponent.pdfViewerComponent.pdfViewer, 'forceRendering').and.callFake(() => {});
|
||||||
|
Reference in New Issue
Block a user