feat(contact): add toast notifications for form feedback
- Add toast notifications for contact form success/error responses - Add toast notifications for backend errors in AppFooter - Add accessibility explanation for honeypot field - Add loading state to contact form submit button - Add i18n translations for toast messages (en/fr) - Fix honeypot input missing v-model binding
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
|
||||
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
||||
import { nextTick } from 'vue';
|
||||
import type { FetchError } from 'ofetch';
|
||||
@@ -14,10 +16,6 @@ vi.mock('#app', () => ({
|
||||
}));
|
||||
|
||||
// Mock $fetch globally
|
||||
declare global {
|
||||
var $fetch: ReturnType<typeof vi.fn>;
|
||||
}
|
||||
// global.$fetch = vi.fn();
|
||||
vi.mock('#app', () => ({
|
||||
useRuntimeConfig: vi.fn(() => ({
|
||||
public: {
|
||||
|
||||
Reference in New Issue
Block a user