Add data-e2e on storage locations for Pendo [SCI-10943]

This commit is contained in:
Klemen Benedicic 2024-08-06 09:03:00 +02:00
parent 838bce9ac1
commit 666b8badcf
5 changed files with 6 additions and 6 deletions

View file

@ -314,7 +314,7 @@
<div v-if="!repository?.is_snapshot" id="divider" class="bg-sn-light-grey flex px-8 items-center self-stretch h-px "></div>
<!-- Locations -->
<section v-if="!repository?.is_snapshot" id="locations-section" ref="locationsSectionRef">
<section v-if="!repository?.is_snapshot" id="locations-section" ref="locationsSectionRef" data-e2e="e2e-CO-itemCard-locations">
<Locations :repositoryRow="repositoryRow" :repository="repository" />
</section>
<div v-if="!repository?.is_snapshot" id="divider" class="bg-sn-light-grey flex px-8 items-center self-stretch h-px "></div>

View file

@ -1,8 +1,8 @@
<template>
<div v-if="repositoryRow">
<div class="flex items-center gap-4">
<h4>{{ i18n.t('repositories.locations.title', { count: repositoryRow.locations.length }) }}</h4>
<button class="btn btn-light">
<h4 data-e2e="e2e-TX-itemCard-locations-title">{{ i18n.t('repositories.locations.title', { count: repositoryRow.locations.length }) }}</h4>
<button class="btn btn-light" data-e2e="e2e-BT-itemCard-assignLocation">
{{ i18n.t('repositories.locations.assign') }}
</button>
</div>

View file

@ -3,7 +3,7 @@
<div v-if="withGrid">
<div class="py-4">
<div class="h-11">
<button class="btn btn-primary" @click="assignRow">
<button class="btn btn-primary" @click="assignRow" data-e2e="e2e-BT-topToolbar-locations-assignItem">
<i class="sn-icon sn-icon-new-task"></i>
{{ i18n.t('storage_locations.show.toolbar.assign') }}
</button>

View file

@ -8,7 +8,7 @@
<h1><%= t('storage_locations.index.head_title') %></h1>
</div>
</div>
<div class="content-body " data-e2e="e2e-CO-storage_-ocations">
<div class="content-body " data-e2e="e2e-CO-storageLocations">
<div id="storageLocationsTable" class="fixed-content-body">
<storage-locations
actions-url="<%= actions_toolbar_storage_locations_path(current_team) %>"

View file

@ -8,7 +8,7 @@
<h1><%= @storage_location.name %></h1>
</div>
</div>
<div class="content-body" data-e2e="e2e-CO-storage_locations_container">
<div class="content-body" data-e2e="e2e-CO-storageLocations-box">
<div id="StorageLocationsContainer" class="fixed-content-body">
<storage-locations-container
actions-url="<%= actions_toolbar_storage_location_storage_location_repository_rows_path(@storage_location) %>"