mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 17:10:07 +00:00
fix: add data-testid attributes for template workflows in WorkflowTemplateSelectorDialog
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user