/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable playwright/missing-playwright-await */ import { render, screen, fireEvent, waitFor } from "@testing-library/react"; import { vi } from "vitest"; import { Select, SelectField, SelectWithValidation } from "./Select"; const options = [ { label: "Option 1", value: "option1" }, { label: "Option 2", value: "option2" }, { label: "Option 3", value: "option3" }, ]; const onChangeMock = vi.fn(); const props: any = { name: "test", options: options, defaultValue: { label: "Option 3", value: "option3" }, onChange: onChangeMock, }; const classNames = { singleValue: () => "w-1", valueContainer: () => "w-2", control: () => "w-3", input: () => "w-4", option: () => "w-5", menuList: () => "w-6", menu: () => "w-7", multiValue: () => "w-8", }; const renderSelectWithForm = (newProps?: any) => { render(