[ADF-2494] Task Standalone - Provide a way to attach a form (#3459)

* button added for task standalone

* attach form component added

* slide-toggle position fixed

* tests added

* rebase fixed

* review fix

* test added & fixes

* tests fixes

* refresh task details

* tests fixed

* attachFormToATask test added

* formPreview test fixed

* adf-form test fixed
This commit is contained in:
bbcodrin
2018-06-28 12:39:15 +03:00
committed by Eugenio Romano
parent 9fef181155
commit 8dfd67e037
16 changed files with 323 additions and 20 deletions

View File

@@ -160,9 +160,12 @@ describe('TaskDetailsComponent', () => {
it('should not display task standalone component when the task have an associated form', async(() => {
component.taskId = '123';
component.taskDetails = new TaskDetailsModel(taskDetailsMock);
component.taskDetails.formKey = '10';
fixture.detectChanges();
fixture.whenStable().then(() => {
fixture.detectChanges();
expect(fixture.debugElement.query(By.css('adf-task-standalone'))).toBeDefined();
expect(fixture.debugElement.query(By.css('adf-task-standalone'))).not.toBeNull();
});
}));