mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
AAE-1794 - added extra unit test (#5477)
This commit is contained in:
parent
d9cf24a4cb
commit
d9ade815dd
@ -315,4 +315,31 @@ describe('FileUploadingDialogComponent', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('Confirmation Dialog', () => {
|
||||
|
||||
it('should focus on dialog when coming from confirmation', async () => {
|
||||
uploadService.addToQueue(...fileList);
|
||||
uploadService.uploadFilesInTheQueue(emitter);
|
||||
component.toggleConfirmation();
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
|
||||
const confirmDecription = fixture.nativeElement.querySelector('#confirmationDescription');
|
||||
expect(confirmDecription).not.toBeNull();
|
||||
expect(confirmDecription).toBeDefined();
|
||||
|
||||
const confirmTitle = fixture.nativeElement.querySelector('#confirmationTitle');
|
||||
expect(confirmTitle).toBeDefined();
|
||||
expect(confirmTitle).not.toBeNull();
|
||||
|
||||
const confirmButton = fixture.nativeElement.querySelector('#adf-upload-dialog-confirm');
|
||||
expect(confirmButton).toBeDefined();
|
||||
expect(confirmButton).not.toBeNull();
|
||||
|
||||
const cancelButton = fixture.nativeElement.querySelector('#adf-upload-dialog-cancel');
|
||||
expect(cancelButton).toBeDefined();
|
||||
expect(cancelButton).not.toBeNull();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user