add aria labels on vue node widgets (2/2) (#6037)

## Summary

Continuation of https://github.com/Comfy-Org/ComfyUI_frontend/pull/6032

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6037-add-aria-labels-on-vue-node-widgets-2-2-28b6d73d365081d68795f5dfaca0b89a)
by [Unito](https://www.unito.io)
This commit is contained in:
Christian Byrne
2025-10-14 11:33:15 -07:00
committed by GitHub
parent 094d6e65a2
commit 5bc7c8a5c2
5 changed files with 22 additions and 1 deletions

View File

@@ -3,7 +3,9 @@ import PrimeVue from 'primevue/config'
import Textarea from 'primevue/textarea'
import { describe, expect, it, vi } from 'vitest'
import { nextTick } from 'vue'
import { createI18n } from 'vue-i18n'
import enMessages from '@/locales/en/main.json'
import type { SimplifiedWidget } from '@/types/simplifiedWidget'
import WidgetMarkdown from './WidgetMarkdown.vue'
@@ -39,9 +41,19 @@ describe('WidgetMarkdown Dual Mode Display', () => {
modelValue: string,
readonly = false
) => {
const i18n = createI18n({
legacy: false,
locale: 'en',
messages: {
en: {
...enMessages
}
}
})
return mount(WidgetMarkdown, {
global: {
plugins: [PrimeVue],
plugins: [PrimeVue, i18n],
components: { Textarea }
},
props: {