fix: add data-testid attributes for template workflows in WorkflowTemplateSelectorDialog

This commit is contained in:
Johnpaul
2025-09-12 22:41:51 +01:00
parent b1b1312807
commit f0c8a6d1ac

View File

@@ -135,6 +135,7 @@
<!-- Template Cards Grid -->
<div
class="grid grid-cols-[repeat(auto-fill,minmax(16rem,1fr))] gap-x-4 gap-y-6 px-4 py-4"
data-testid="template-workflows-content"
>
<CardContainer
v-for="template in displayTemplates"
@@ -144,6 +145,7 @@
:max-width="300"
:min-width="200"
class="cursor-pointer transition-all duration-300 hover:scale-[1.02]"
:data-testid="`template-workflow-${template.name}`"
@mouseenter="hoveredTemplates[template.name] = true"
@mouseleave="hoveredTemplates[template.name] = false"
@click="onLoadWorkflow(template)"