RED-3212 - added ids for tests

This commit is contained in:
Valentin 2022-09-20 11:20:42 +03:00
parent 8d232fe2d6
commit ffb38dadc2
6 changed files with 6 additions and 2 deletions

View File

@ -42,6 +42,7 @@
></iqser-circle-button>
<iqser-circle-button
id="assign-me"
(action)="fileAssignService.assignToMe([file])"
*ngIf="canAssignToSelf$ | async"
[icon]="'red:assign-me'"

View File

@ -124,6 +124,7 @@ export class FileActionsComponent implements OnChanges {
private get _buttons(): Action[] {
return [
{
id: 'delete-file',
type: ActionTypes.circleBtn,
action: ($event: MouseEvent) => this._openDeleteFileDialog($event),
tooltip: _('dossier-overview.delete.action'),

View File

@ -2,6 +2,7 @@
<iqser-circle-button
(action)="btn.action($event)"
*ngIf="btn.type === 'circleBtn'"
[id]="btn.id"
[attr.aria-expanded]="btn.ariaExpanded && btn.ariaExpanded | async"
[disabled]="btn.disabled"
[icon]="btn.icon"

View File

@ -32,7 +32,7 @@ export class TrashScreenComponent extends ListingComponent<TrashItem> {
{ label: _('trash.table-col-names.name'), sortByKey: 'name' },
{ label: _('trash.table-col-names.owner'), class: 'user-column', sortByKey: 'ownerName' },
{ label: _('trash.table-col-names.dossier'), sortByKey: 'fileDossierName' },
{ label: _('trash.table-col-names.deleted-on'), sortByKey: 'softDeletedTime' },
{ label: _('trash.table-col-names.deleted-on'), sortByKey: 'softDeletedTime', id: 'deleted-on' },
{ label: _('trash.table-col-names.time-to-restore'), sortByKey: 'restoreDate' },
];

@ -1 +1 @@
Subproject commit c174a1985e504084920499bab90e3ed8da50e474
Subproject commit 9589808c6de13dd66179cb7ced92dcd920cc3f74

View File

@ -12,6 +12,7 @@ export const ActionTypes = {
};
export interface Action {
id?: string;
action?: (...args: unknown[]) => void;
tooltip?: string;
icon?: string;