mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF - 778] Fixed error on wrong change detection strategy (#2021)
This commit is contained in:
@@ -114,8 +114,8 @@ describe('FileUploadingDialogComponent', () => {
|
||||
it('should show the close button when the file upload is completed', async(() => {
|
||||
component.isDialogActive = true;
|
||||
uploadService.addToQueue(new FileModel(<File> { name: 'file' }));
|
||||
fixture.detectChanges();
|
||||
fixture.whenStable().then(() => {
|
||||
fixture.detectChanges();
|
||||
let closeButton = element.querySelector('#button-close-upload-list');
|
||||
expect(closeButton).not.toBeNull();
|
||||
});
|
||||
@@ -125,8 +125,8 @@ describe('FileUploadingDialogComponent', () => {
|
||||
|
||||
it('should show the close button when the file upload is in error', async(() => {
|
||||
component.isDialogActive = true;
|
||||
fixture.detectChanges();
|
||||
fixture.whenStable().then(() => {
|
||||
fixture.detectChanges();
|
||||
let closeButton = element.querySelector('#button-close-upload-list');
|
||||
expect(closeButton).not.toBeNull();
|
||||
});
|
||||
@@ -136,8 +136,8 @@ describe('FileUploadingDialogComponent', () => {
|
||||
|
||||
it('should show the close button when the file upload is cancelled', async(() => {
|
||||
component.isDialogActive = true;
|
||||
fixture.detectChanges();
|
||||
fixture.whenStable().then(() => {
|
||||
fixture.detectChanges();
|
||||
let closeButton = element.querySelector('#button-close-upload-list');
|
||||
expect(closeButton).not.toBeNull();
|
||||
});
|
||||
|
Reference in New Issue
Block a user