11import * as React from 'react' ;
2- import { ThemeProvider } from '@mui/material/styles' ;
3- import {
4- fireEvent ,
5- screen ,
6- queryAllByRole ,
7- render ,
8- waitFor ,
9- getByRole ,
10- within ,
11- } from '@testing-library/react' ;
12- import { muiTheme } from '@clients/theme/Theme/muiTheme' ;
13- import {
14- QueryClient ,
15- QueryClientProvider as QueryClientProviderImport ,
16- QueryClientProviderProps ,
17- } from 'react-query' ;
18- import Long from 'long' ;
19- import { RequestConfig } from '@clients/common/types/adminEntityTypes' ;
20- import { APIContext } from '../../../data/apiContext' ;
21- import { mockAPIContextValue } from '../../../data/__mocks__/apiContext' ;
2+
223import {
234 BlobDimensionality ,
245 Identifier ,
@@ -27,18 +8,10 @@ import {
278 Variable ,
289} from '../../../../models/Common/types' ;
2910import {
30- createWorkflowExecution , // CreateWorkflowExecutionArguments
31- } from '../../../../models/Execution/api' ;
32- import { listLaunchPlans } from '../../../../models/Launch/api' ;
33- import { LaunchPlan } from '../../../../models/Launch/types' ;
34- import { getWorkflow , listWorkflows } from '../../../../models/Workflow/api' ;
35- import { Workflow } from '../../../../models/Workflow/types' ;
36- import { createMockWorkflowClosure } from '../../../../models/__mocks__/workflowData' ;
37- import { createTestQueryClient } from '../../../../test/utils' ;
38- import { WorkflowNodeExecutionsProvider } from '../../../Executions/contextProvider/NodeExecutionDetails/WorkflowNodeExecutionsProvider' ;
39- import t from '../strings' ;
40- import { LaunchForm } from '../LaunchForm' ;
41- import { LaunchFormProps } from '../types' ;
11+ QueryClient ,
12+ QueryClientProvider as QueryClientProviderImport ,
13+ QueryClientProviderProps ,
14+ } from 'react-query' ;
4215import {
4316 blobType ,
4417 collectionType ,
@@ -49,10 +22,38 @@ import {
4922 unionType ,
5023} from '../__mocks__/mockInputs' ;
5124import {
52- // stringInputName,
25+ fireEvent ,
26+ getByRole ,
27+ queryAllByRole ,
28+ render ,
29+ screen ,
30+ waitFor ,
31+ within ,
32+ } from '@testing-library/react' ;
33+ import { getWorkflow , listWorkflows } from '../../../../models/Workflow/api' ;
34+
35+ import { APIContext } from '../../../data/apiContext' ;
36+ import { LaunchForm } from '../LaunchForm' ;
37+ import { LaunchFormProps } from '../types' ;
38+ import { LaunchPlan } from '../../../../models/Launch/types' ;
39+ import Long from 'long' ;
40+ import { RequestConfig } from '@clients/common/types/adminEntityTypes' ;
41+ import { ThemeProvider } from '@mui/material/styles' ;
42+ import { Workflow } from '../../../../models/Workflow/types' ;
43+ import { WorkflowNodeExecutionsProvider } from '../../../Executions/contextProvider/NodeExecutionDetails/WorkflowNodeExecutionsProvider' ;
44+ import { createMockObjects } from './utils' ;
45+ import { createMockWorkflowClosure } from '../../../../models/__mocks__/workflowData' ;
46+ import { createTestQueryClient } from '../../../../test/utils' ;
47+ import {
48+ createWorkflowExecution
49+ } from '../../../../models/Execution/api' ;
50+ import { listLaunchPlans } from '../../../../models/Launch/api' ;
51+ import { mockAPIContextValue } from '../../../data/__mocks__/apiContext' ;
52+ import { muiTheme } from '@clients/theme/Theme/muiTheme' ;
53+ import {
5354 stringNoLabelName ,
5455} from './constants' ;
55- import { createMockObjects } from './utils ' ;
56+ import t from '../strings ' ;
5657import { workflowNoInputsString } from '../constants' ;
5758
5859const QueryClientProvider : React . FC < React . PropsWithChildren < QueryClientProviderProps > > =
@@ -2224,7 +2225,7 @@ describe('LaunchForm: Workflow', () => {
22242225 // expect datetime to be correctly prepopulated
22252226 await waitFor ( ( ) => {
22262227 // bool should be true
2227- expect ( datetimeInput ! ) . toHaveValue ( '10/17/2023 19:07:39' ) ;
2228+ expect ( datetimeInput ! ) . toHaveValue ( '2023-10-17 19:07:39' ) ;
22282229 } ) ;
22292230
22302231 // expect no validation error
0 commit comments