mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 21:13:07 +00:00
Merge pull request #2243 from 4Science/DURACOM-145
Handled collection step visibility on a submission form
This commit is contained in:
@@ -252,6 +252,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();
|
||||
|
Reference in New Issue
Block a user