[DURACOM-145] Handled collection step

on a submission form
This commit is contained in:
Alisa Ismailati
2023-05-09 17:27:06 +02:00
parent c233927c29
commit 681ee6f816
8 changed files with 91 additions and 3 deletions

View File

@@ -249,6 +249,12 @@ describe('SubmissionFormCollectionComponent Component', () => {
expect(dropDown).toBeFalsy();
});
it('the dropdown button should be disabled when isReadonly is true', () => {
comp.isReadonly = true;
fixture.detectChanges();
expect(dropdowBtn.nativeNode.attributes.disabled).toBeDefined();
});
it('should be simulated when the drop-down menu is closed', () => {
spyOn(comp, 'onClose');
comp.onClose();