From ae894855efd6dea1d5ac9bcd5a9ad6291f270def Mon Sep 17 00:00:00 2001 From: Uzaeir <97288209+UzaeirKhan@users.noreply.github.com> Date: Mon, 4 Nov 2024 14:42:22 +0100 Subject: [PATCH] BC-2936 Dynamic selector for task tests (#3533) --- .../lib/components/files-storage/files-card.hbs | 8 +++++--- .../lib/components/files-storage/files-grid.hbs | 2 +- .../files-storage/forms/form-name-edit.hbs | 17 +++++++++-------- views/teams/team.hbs | 4 ++-- 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/views/lib/components/files-storage/files-card.hbs b/views/lib/components/files-storage/files-card.hbs index e5796aa400..6ff4429655 100644 --- a/views/lib/components/files-storage/files-card.hbs +++ b/views/lib/components/files-storage/files-card.hbs @@ -11,7 +11,7 @@ tabindex="0" aria-label="{{$t "files.label.clickToOpenFile" (dict "name" this.name)}}" role="button"> -
+
@@ -37,7 +37,7 @@ data-file-name="{{../this.name}}" class="file-btn" data-method="download" - data-testid="file-download-btn" + data-testid="file-download-btn-{{../fileIndex}}" title="{{$t "files.label.downloadFile"}}"> @@ -48,13 +48,15 @@ data-file-id="{{../this.id}}" data-file-name="{{../this.name}}" title="{{$t "files.label.renameFile"}}" - class="file-btn fa fa-edit file-name-edit"> + class="file-btn fa fa-edit file-name-edit" + data-testid="file-rename-btn-{{../fileIndex}}"> {{/userHasPermission}} {{#userHasPermission "FILESTORAGE_REMOVE"}}