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
|
||||
unit-tests:
|
||||
if: ${{ needs.generate-affected-matrix.outputs.matrix != '' }}
|
||||
name: "Unit tests for affected project: ${{ matrix.project }}"
|
||||
name: "Unit tests : ${{ matrix.project }}"
|
||||
runs-on: ubuntu-latest
|
||||
needs: [generate-affected-matrix]
|
||||
strategy:
|
||||
|
@@ -388,7 +388,7 @@ describe('Test PdfViewer - Zoom customization', () => {
|
||||
fixtureUrlTestComponent.detectChanges();
|
||||
await fixtureUrlTestComponent.whenStable();
|
||||
await firstValueFrom(componentUrlTestComponent.pdfViewerComponent.rendered);
|
||||
}, 55000);
|
||||
});
|
||||
|
||||
it('should use the custom zoom if it is present in the app.config', fakeAsync(() => {
|
||||
spyOn(componentUrlTestComponent.pdfViewerComponent.pdfViewer, 'forceRendering').and.callFake(() => {});
|
||||
@@ -408,7 +408,7 @@ describe('Test PdfViewer - Zoom customization', () => {
|
||||
fixtureUrlTestComponent.detectChanges();
|
||||
await fixtureUrlTestComponent.whenStable();
|
||||
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 () => {
|
||||
spyOn(componentUrlTestComponent.pdfViewerComponent.pdfViewer, 'forceRendering').and.callFake(() => {});
|
||||
|
Reference in New Issue
Block a user