mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-4364] Fix Back button action on Viewer Component (#4613)
* [ADF-3364] Fix Back button action on Viewer Component * [ADF-4364] Fix Module providers * [ADF-4364] Add unit tests * [ADF-4364] Fix unit tests * [ADF-4364] Fix lazy loading module of Viewer component
This commit is contained in:
committed by
Eugenio Romano
parent
8395b0baa5
commit
181cee72d6
@@ -276,23 +276,21 @@ describe('Test PdfViewer component', () => {
|
||||
document.body.removeChild(elementBlobTestComponent);
|
||||
});
|
||||
|
||||
it('should Canvas be present', (done) => {
|
||||
it('should Canvas be present', () => {
|
||||
fixtureBlobTestComponent.detectChanges();
|
||||
|
||||
fixtureBlobTestComponent.whenStable().then(() => {
|
||||
expect(elementBlobTestComponent.querySelector('.adf-pdfViewer')).not.toBeNull();
|
||||
expect(elementBlobTestComponent.querySelector('.adf-viewer-pdf-viewer')).not.toBeNull();
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should Next an Previous Buttons be present', (done) => {
|
||||
it('should Next an Previous Buttons be present', () => {
|
||||
fixtureBlobTestComponent.detectChanges();
|
||||
|
||||
fixtureBlobTestComponent.whenStable().then(() => {
|
||||
expect(elementBlobTestComponent.querySelector('#viewer-previous-page-button')).not.toBeNull();
|
||||
expect(elementBlobTestComponent.querySelector('#viewer-next-page-button')).not.toBeNull();
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user