diff --git a/apps/web/__tests__/components/upstream-editor/disabled-model-parity_test.tsx b/apps/web/__tests__/components/upstream-editor/disabled-model-parity_test.tsx new file mode 100644 index 0000000000..febdbd894c --- /dev/null +++ b/apps/web/__tests__/components/upstream-editor/disabled-model-parity_test.tsx @@ -0,0 +1,137 @@ +import { fireEvent, screen } from '@testing-library/react'; +import { forwardRef, useState } from 'react'; +import type { PropsWithChildren } from 'react'; +import { FormProvider, useForm } from 'react-hook-form'; +import { MemoryRouter } from 'react-router'; +import { describe, expect, it, vi } from 'vitest'; + +import type { UpstreamRecord } from '../../../src/api/types'; +import { UpstreamConfigSidebar } from '../../../src/components/upstream-editor/config-sidebar'; +import type { UpstreamEditLevel, UpstreamEditorValues } from '../../../src/components/upstream-editor/data'; +import { valuesFromRecord } from '../../../src/components/upstream-editor/data'; +import { UpstreamWorkspace, type ModelsYamlDraft } from '../../../src/components/upstream-editor/workspace'; +import { i18n } from '../../../src/i18n'; +import { upstreamRecord } from '../../api/upstream-fixture'; +import { renderInApp } from '../../render'; +import type { UpstreamModelConfig } from '@floway-dev/provider/browser'; + +vi.mock('../../../src/components/upstream-editor/models-yaml-editor', () => ({ + default: ({ onChange, value }: { onChange: (value: string) => void; value: string }) => ( +