mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF 3635] Added translation label to checklist dialog (#3894)
* [ADF-3635] added translation label to checklist dialog * [ADF-3635] fixed tests
This commit is contained in:
@@ -116,13 +116,16 @@ describe('ChecklistComponent', () => {
|
||||
showChecklistDialog = <HTMLElement> element.querySelector('#add-checklist');
|
||||
});
|
||||
|
||||
it('should show dialog when clicked on add', () => {
|
||||
it('should show dialog when clicked on add', (done) => {
|
||||
expect(showChecklistDialog).not.toBeNull();
|
||||
showChecklistDialog.click();
|
||||
|
||||
expect(window.document.querySelector('#checklist-dialog')).not.toBeNull();
|
||||
expect(window.document.querySelector('#add-checklist-title')).not.toBeNull();
|
||||
expect(window.document.querySelector('#add-checklist-title').textContent).toContain('New Check');
|
||||
fixture.detectChanges();
|
||||
fixture.whenStable().then(() => {
|
||||
expect(window.document.querySelector('#checklist-dialog')).not.toBeNull();
|
||||
expect(window.document.querySelector('#add-checklist-title')).not.toBeNull();
|
||||
expect(window.document.querySelector('#add-checklist-title').textContent).toContain('ADF_TASK_LIST.DETAILS.CHECKLIST.DIALOG.TITLE');
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user