Compare commits

...

1 Commits

Author SHA1 Message Date
Alexander Brown
2c7fecc8e7 fix: add usetoast mock for persistence tests and update textarea styling
Add missing primevue/usetoast mock to useWorkflowPersistence.test.ts

Update Textarea to use design system tokens (rounded-lg, bg-secondary-background, text-base-foreground, ring-border-default, disabled:pointer-events-none)

Amp-Thread-ID: https://ampcode.com/threads/T-019cb14e-7cd5-7639-a48d-9e240e6f8224
Co-authored-by: Amp <amp@ampcode.com>
2026-03-02 17:33:13 -08:00
2 changed files with 7 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ const modelValue = defineModel<string | number>()
v-model="modelValue"
:class="
cn(
'flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50',
'flex min-h-16 w-full rounded-lg border-none bg-secondary-background px-3 py-2 text-sm text-base-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-border-default disabled:pointer-events-none disabled:opacity-50',
className
)
"

View File

@@ -37,6 +37,12 @@ vi.mock('primevue', () => ({
})
}))
vi.mock('primevue/usetoast', () => ({
useToast: () => ({
add: mockToastAdd
})
}))
vi.mock('vue-i18n', async (importOriginal) => {
const actual = await importOriginal<typeof I18n>()
return {