1
1
import * 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
+
22
3
import {
23
4
BlobDimensionality ,
24
5
Identifier ,
@@ -27,18 +8,10 @@ import {
27
8
Variable ,
28
9
} from '../../../../models/Common/types' ;
29
10
import {
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' ;
42
15
import {
43
16
blobType ,
44
17
collectionType ,
@@ -49,10 +22,38 @@ import {
49
22
unionType ,
50
23
} from '../__mocks__/mockInputs' ;
51
24
import {
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 {
53
54
stringNoLabelName ,
54
55
} from './constants' ;
55
- import { createMockObjects } from './utils ' ;
56
+ import t from '../strings ' ;
56
57
import { workflowNoInputsString } from '../constants' ;
57
58
58
59
const QueryClientProvider : React . FC < React . PropsWithChildren < QueryClientProviderProps > > =
@@ -2224,7 +2225,7 @@ describe('LaunchForm: Workflow', () => {
2224
2225
// expect datetime to be correctly prepopulated
2225
2226
await waitFor ( ( ) => {
2226
2227
// bool should be true
2227
- expect ( datetimeInput ! ) . toHaveValue ( '10/17/2023 19:07:39' ) ;
2228
+ expect ( datetimeInput ! ) . toHaveValue ( '2023-10-17 19:07:39' ) ;
2228
2229
} ) ;
2229
2230
2230
2231
// expect no validation error
0 commit comments