Refactor: Simplify event handling in FlyerUploader tests and enhance form submission in ProfileManager for improved clarity and robustness
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 22m11s

This commit is contained in:
2025-12-16 09:44:15 -08:00
parent f025cc20c3
commit 88f856c141
4 changed files with 15 additions and 45 deletions

View File

@@ -372,7 +372,7 @@ export const ProfileManager: React.FC<ProfileManagerProps> = ({ isOpen, onClose,
</div>
{activeTab === 'profile' && (
<form onSubmit={handleProfileSave} className="space-y-4">
<form data-testid="profile-form" onSubmit={handleProfileSave} className="space-y-4">
<div>
<label htmlFor="fullName" className="block text-sm font-medium text-gray-700 dark:text-gray-300">Full Name</label>
<input id="fullName" type="text" value={fullName} onChange={e => setFullName(e.target.value)} className="mt-1 block w-full px-3 py-2 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm" />