e2e tests

This commit is contained in:
Jesus Vasquez 2024-03-05 21:32:42 -05:00
parent 8c33e14fbc
commit c9dd083eae
6 changed files with 15 additions and 24 deletions

View file

@ -127,7 +127,7 @@ const FileInput: React.FC<FileInputProps> = ({ label, ...props }) => {
{/* File info */}
{fileInfo && (
<div className="flex gap-4 p-4 items-center border-t border-grey-500">
<div className="file-info flex gap-4 p-4 items-center border-t border-grey-500">
<FontAwesomeIcon icon={faFile} className="text-amber-500 h-5 w-5" />
<div className="grow">
<div className="flex justify-between text-sm text-slate-500">

View file

@ -54,8 +54,7 @@ const ToggleField = ({
</div>
<div className="flex gap-3 itens-center">
<SwitchPrimitive.Root
className="relative h-[25px] w-[42px] cursor-default rounded-full bg-indigo-900 outline-none"
checked={checked}
className="toggle-switch relative h-[25px] w-[42px] cursor-default rounded-full bg-indigo-900 outline-none"
onCheckedChange={(isChecked) => handleCheckedChange(isChecked)}
>
<SwitchPrimitive.Thumb className="block h-[21px] w-[21px] translate-x-0.5 rounded-full bg-white transition-transform duration-100 will-change-transform data-[state=checked]:translate-x-[19px]" />

View file

@ -10,7 +10,7 @@ export const initialValues: FormValues = {
testingCenter2: "",
testingCenter3: "",
testingCenter4: "",
toleranceWindow: false,
toleranceWindow: false
}
export const validationSchema = Yup.object({

View file

@ -141,7 +141,7 @@ const FormComponent: React.FC = () => {
</Button>
</div>
{/* Success message - Display a success message if the form has been submitted successfully */}
{formSubmitted && <div className="sucess-message text-center text-green-500">Success</div>}
{formSubmitted && <div className="success-message text-center text-green-500">Success</div>}
</div>
</div>