mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[CST-5253] Fix view item button for pool tasks in the mydspace results list
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
<span *ngIf="!(processing$ | async)"><i class="fas fa-hand-paper"></i> {{'submission.workflow.tasks.pool.claim' |
|
<span *ngIf="!(processing$ | async)"><i class="fas fa-hand-paper"></i> {{'submission.workflow.tasks.pool.claim' |
|
||||||
translate}}</span>
|
translate}}</span>
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-primary workflow-view ml-1 mt-1 mb-3"
|
<button class="btn btn-primary workflow-view ml-1 mt-1 mb-3" data-test="view-btn"
|
||||||
ngbTooltip="{{'submission.workflow.generic.view-help' | translate}}"
|
ngbTooltip="{{'submission.workflow.generic.view-help' | translate}}"
|
||||||
[routerLink]="[getWorkflowItemViewRoute((workflowitem$ | async))]">
|
[routerLink]="[getWorkflowItemViewRoute((workflowitem$ | async))]">
|
||||||
<i class="fa fa-info-circle"></i> {{"submission.workflow.generic.view" | translate}}
|
<i class="fa fa-info-circle"></i> {{"submission.workflow.generic.view" | translate}}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Injector, NO_ERRORS_SCHEMA } from '@angular/core';
|
import { ChangeDetectionStrategy, Injector, NO_ERRORS_SCHEMA } from '@angular/core';
|
||||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
|
|
||||||
@@ -133,6 +133,12 @@ describe('PoolTaskActionsComponent', () => {
|
|||||||
expect(btn).toBeDefined();
|
expect(btn).toBeDefined();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should display view button', () => {
|
||||||
|
const btn = fixture.debugElement.query(By.css('button [data-test="view-btn"]'));
|
||||||
|
|
||||||
|
expect(btn).toBeDefined();
|
||||||
|
});
|
||||||
|
|
||||||
it('should call claim task with href of getPoolTaskEndpointById', ((done) => {
|
it('should call claim task with href of getPoolTaskEndpointById', ((done) => {
|
||||||
|
|
||||||
const poolTaskHref = 'poolTaskHref';
|
const poolTaskHref = 'poolTaskHref';
|
||||||
|
Reference in New Issue
Block a user