diff options
author | Louis Chemineau <louis@chmn.me> | 2024-02-26 18:53:22 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-02 18:53:24 +0200 |
commit | aa39239c574001ac05a775aa648e6209e63cc577 (patch) | |
tree | 86fd56672dd1b20c9fba3228bcbe4545182676f6 /apps/files_versions | |
parent | 5183ba226a3d24a31644d674f110716dcfdf1819 (diff) | |
download | nextcloud-server-aa39239c574001ac05a775aa648e6209e63cc577.tar.gz nextcloud-server-aa39239c574001ac05a775aa648e6209e63cc577.zip |
test: Add test selector on sharing and versions components
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/src/components/Version.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files_versions/src/components/Version.vue b/apps/files_versions/src/components/Version.vue index 4a24891d49a..682426796c8 100644 --- a/apps/files_versions/src/components/Version.vue +++ b/apps/files_versions/src/components/Version.vue @@ -19,7 +19,7 @@ <NcListItem class="version" :name="versionLabel" :force-display-actions="true" - data-files-versions-version + :data-files-versions-version="version.fileVersion" @click="click"> <template #icon> <div v-if="!(loadPreview || previewLoaded)" class="version__image" /> @@ -47,6 +47,7 @@ </template> <template #actions> <NcActionButton v-if="enableLabeling && hasUpdatePermissions" + data-cy-files-versions-version-action="label" :close-after-click="true" @click="labelUpdate"> <template #icon> @@ -55,6 +56,7 @@ {{ version.label === '' ? t('files_versions', 'Name this version') : t('files_versions', 'Edit version name') }} </NcActionButton> <NcActionButton v-if="!isCurrent && canView && canCompare" + data-cy-files-versions-version-action="compare" :close-after-click="true" @click="compareVersion"> <template #icon> @@ -63,6 +65,7 @@ {{ t('files_versions', 'Compare to current version') }} </NcActionButton> <NcActionButton v-if="!isCurrent && hasUpdatePermissions" + data-cy-files-versions-version-action="restore" :close-after-click="true" @click="restoreVersion"> <template #icon> @@ -71,6 +74,7 @@ {{ t('files_versions', 'Restore version') }} </NcActionButton> <NcActionLink v-if="isDownloadable" + data-cy-files-versions-version-action="download" :href="downloadURL" :close-after-click="true" :download="downloadURL"> @@ -80,6 +84,7 @@ {{ t('files_versions', 'Download version') }} </NcActionLink> <NcActionButton v-if="!isCurrent && enableDeletion && hasDeletePermissions" + data-cy-files-versions-version-action="delete" :close-after-click="true" @click="deleteVersion"> <template #icon> |