diff --git a/app/javascript/vue/shared/content/attachments/context_menu.vue b/app/javascript/vue/shared/content/attachments/context_menu.vue index 17698c868..040f30a4e 100644 --- a/app/javascript/vue/shared/content/attachments/context_menu.vue +++ b/app/javascript/vue/shared/content/attachments/context_menu.vue @@ -136,7 +136,8 @@ export default { menu.push({ text, - emit: 'open_locally' + emit: 'open_locally', + data_e2e: 'e2e-BT-attachmentOptions-openLocally' }); } menu.push({ diff --git a/app/javascript/vue/shared/content/attachments/thumbnail.vue b/app/javascript/vue/shared/content/attachments/thumbnail.vue index db886b58a..8e5a49154 100644 --- a/app/javascript/vue/shared/content/attachments/thumbnail.vue +++ b/app/javascript/vue/shared/content/attachments/thumbnail.vue @@ -238,7 +238,8 @@ export default { options.push({ text, - emit: 'open_locally' + emit: 'open_locally', + data_e2e: 'e2e-BT-attachmentOptions-openLocally' }); } return options; diff --git a/app/javascript/vue/shared/menu_dropdown.vue b/app/javascript/vue/shared/menu_dropdown.vue index 7f0031da0..1934dc1ce 100644 --- a/app/javascript/vue/shared/menu_dropdown.vue +++ b/app/javascript/vue/shared/menu_dropdown.vue @@ -22,6 +22,7 @@ :class="{ 'bg-sn-super-light-blue': item.active }" :data-toggle="item.modalTarget && 'modal'" :data-target="item.modalTarget" + :data-e2e="item.data_e2e" class="block whitespace-nowrap rounded px-3 py-2.5 hover:!text-sn-blue hover:no-underline cursor-pointer hover:bg-sn-super-light-grey leading-5" @click="handleClick($event, item)" >