forked from hazza/dspace-angular
[CST-5253] Add view item button for workflow items
This commit is contained in:
@@ -18,6 +18,7 @@ import { getMockRequestService } from '../../mocks/request.service.mock';
|
||||
import { RequestService } from '../../../core/data/request.service';
|
||||
import { getMockSearchService } from '../../mocks/search-service.mock';
|
||||
import { SearchService } from '../../../core/shared/search/search.service';
|
||||
import { By } from '@angular/platform-browser';
|
||||
|
||||
let component: WorkflowitemActionsComponent;
|
||||
let fixture: ComponentFixture<WorkflowitemActionsComponent>;
|
||||
@@ -105,4 +106,10 @@ describe('WorkflowitemActionsComponent', () => {
|
||||
expect(component.object).toEqual(mockObject);
|
||||
});
|
||||
|
||||
it('should display view button', () => {
|
||||
const btn = fixture.debugElement.query(By.css('button [data-test="view-btn"]'));
|
||||
|
||||
expect(btn).toBeDefined();
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user