@@ -10,8 +10,8 @@ jest.mock("react-i18next", () => ({
10
10
( {
11
11
"setup.tabs.taskinfo.task_info" : "Task Information" ,
12
12
"setup.tabs.taskinfo.task_choice" : "Choice of Task" ,
13
- "setup.tabs.taskinfo.task_choice_classification " :
14
- "Image Classification " ,
13
+ "setup.tabs.taskinfo.task_choice_object_detection " :
14
+ "Object Detection " ,
15
15
"setup.tabs.taskinfo.task_choice_segmentation" : "Image Segmentation" ,
16
16
} ) [ key ] ,
17
17
} ) ,
@@ -61,7 +61,7 @@ describe("ConfigurationTask", () => {
61
61
title : "Task Choice" ,
62
62
type : "radiogroup" ,
63
63
choices : [
64
- { value : "image_classification " , text : "Image Classification " } ,
64
+ { value : "object_detection " , text : "Object Detection " } ,
65
65
{ value : "image_segmentation" , text : "Image Segmentation" } ,
66
66
] ,
67
67
} ,
@@ -81,13 +81,13 @@ describe("ConfigurationTask", () => {
81
81
expect ( screen . getByText ( "Choice of Task" ) ) . toBeInTheDocument ( )
82
82
83
83
// Assert radio buttons are rendered
84
- const imageClassificationRadio = screen . getByTestId (
85
- `radio-taskChoice-image_classification ` ,
84
+ const imageObjectDetectionRadio = screen . getByTestId (
85
+ `radio-taskChoice-object_detection ` ,
86
86
)
87
87
const imageSegmentationRadio = screen . getByTestId (
88
88
`radio-taskChoice-image_segmentation` ,
89
89
)
90
- expect ( imageClassificationRadio ) . toBeInTheDocument ( )
90
+ expect ( imageObjectDetectionRadio ) . toBeInTheDocument ( )
91
91
expect ( imageSegmentationRadio ) . toBeInTheDocument ( )
92
92
93
93
// Simulate changing radio button and verify onChange is called
0 commit comments