From 10a5030b7a66201a483f0ff3ea89d303793d98ce Mon Sep 17 00:00:00 2001 From: Tim Bauer Date: Fri, 1 Mar 2024 14:47:28 +0100 Subject: [PATCH] Fix editor changes Signed-off-by: Tim Bauer --- .../test/LaunchWorkflowFormInputs.test.tsx | 69 +++++++++---------- 1 file changed, 34 insertions(+), 35 deletions(-) diff --git a/packages/oss-console/src/components/Launch/LaunchForm/test/LaunchWorkflowFormInputs.test.tsx b/packages/oss-console/src/components/Launch/LaunchForm/test/LaunchWorkflowFormInputs.test.tsx index 9092f6f31..858ca85be 100644 --- a/packages/oss-console/src/components/Launch/LaunchForm/test/LaunchWorkflowFormInputs.test.tsx +++ b/packages/oss-console/src/components/Launch/LaunchForm/test/LaunchWorkflowFormInputs.test.tsx @@ -1,5 +1,24 @@ import * as React from 'react'; - +import { ThemeProvider } from '@mui/material/styles'; +import { + fireEvent, + screen, + queryAllByRole, + render, + waitFor, + getByRole, + within, +} from '@testing-library/react'; +import { muiTheme } from '@clients/theme/Theme/muiTheme'; +import { + QueryClient, + QueryClientProvider as QueryClientProviderImport, + QueryClientProviderProps, +} from 'react-query'; +import Long from 'long'; +import { RequestConfig } from '@clients/common/types/adminEntityTypes'; +import { APIContext } from '../../../data/apiContext'; +import { mockAPIContextValue } from '../../../data/__mocks__/apiContext'; import { BlobDimensionality, Identifier, @@ -8,10 +27,18 @@ import { Variable, } from '../../../../models/Common/types'; import { - QueryClient, - QueryClientProvider as QueryClientProviderImport, - QueryClientProviderProps, -} from 'react-query'; + createWorkflowExecution, // CreateWorkflowExecutionArguments +} from '../../../../models/Execution/api'; +import { listLaunchPlans } from '../../../../models/Launch/api'; +import { LaunchPlan } from '../../../../models/Launch/types'; +import { getWorkflow, listWorkflows } from '../../../../models/Workflow/api'; +import { Workflow } from '../../../../models/Workflow/types'; +import { createMockWorkflowClosure } from '../../../../models/__mocks__/workflowData'; +import { createTestQueryClient } from '../../../../test/utils'; +import { WorkflowNodeExecutionsProvider } from '../../../Executions/contextProvider/NodeExecutionDetails/WorkflowNodeExecutionsProvider'; +import t from '../strings'; +import { LaunchForm } from '../LaunchForm'; +import { LaunchFormProps } from '../types'; import { blobType, collectionType, @@ -22,38 +49,10 @@ import { unionType, } from '../__mocks__/mockInputs'; import { - fireEvent, - getByRole, - queryAllByRole, - render, - screen, - waitFor, - within, -} from '@testing-library/react'; -import { getWorkflow, listWorkflows } from '../../../../models/Workflow/api'; - -import { APIContext } from '../../../data/apiContext'; -import { LaunchForm } from '../LaunchForm'; -import { LaunchFormProps } from '../types'; -import { LaunchPlan } from '../../../../models/Launch/types'; -import Long from 'long'; -import { RequestConfig } from '@clients/common/types/adminEntityTypes'; -import { ThemeProvider } from '@mui/material/styles'; -import { Workflow } from '../../../../models/Workflow/types'; -import { WorkflowNodeExecutionsProvider } from '../../../Executions/contextProvider/NodeExecutionDetails/WorkflowNodeExecutionsProvider'; -import { createMockObjects } from './utils'; -import { createMockWorkflowClosure } from '../../../../models/__mocks__/workflowData'; -import { createTestQueryClient } from '../../../../test/utils'; -import { - createWorkflowExecution -} from '../../../../models/Execution/api'; -import { listLaunchPlans } from '../../../../models/Launch/api'; -import { mockAPIContextValue } from '../../../data/__mocks__/apiContext'; -import { muiTheme } from '@clients/theme/Theme/muiTheme'; -import { + // stringInputName, stringNoLabelName, } from './constants'; -import t from '../strings'; +import { createMockObjects } from './utils'; import { workflowNoInputsString } from '../constants'; const QueryClientProvider: React.FC> =