mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
84367: SearchForm/SearchComponent: add option to hide scope selection dropdown
This commit is contained in:
@@ -72,6 +72,16 @@ describe('SearchFormComponent', () => {
|
||||
expect(select).toBeNull();
|
||||
});
|
||||
|
||||
it('should not display scopes when scopeSelectable is false', () => {
|
||||
comp.scopeSelectable = false;
|
||||
comp.scopes = objects;
|
||||
comp.scope = objects[1].id;
|
||||
|
||||
fixture.detectChanges();
|
||||
const select = de.query(By.css('select'));
|
||||
expect(select).toBeNull();
|
||||
});
|
||||
|
||||
it('should display set query value in input field', fakeAsync(() => {
|
||||
const testString = 'This is a test query';
|
||||
comp.query = testString;
|
||||
|
Reference in New Issue
Block a user