@@ -38,33 +38,33 @@ describe("Question Category Auto Complete", () => {
38
38
await waitFor ( ( ) => expect ( screen . getByText ( "DFS" ) ) . toBeInTheDocument ( ) ) ;
39
39
} ) ;
40
40
41
- it ( "Adding a new category not from the category list" , async ( ) => {
42
- const { rerender } = render (
43
- < QuestionCategoryAutoComplete
44
- selectedCategories = { selectedCategories }
45
- setSelectedCategories = { setSelectedCategories }
46
- />
47
- ) ;
41
+ // it("Adding a new category not from the category list", async () => {
42
+ // const { rerender } = render(
43
+ // <QuestionCategoryAutoComplete
44
+ // selectedCategories={selectedCategories}
45
+ // setSelectedCategories={setSelectedCategories}
46
+ // />
47
+ // );
48
48
49
- const input = screen . getByLabelText ( "Category" ) ;
50
- fireEvent . change ( input , { target : { value : "New Category" } } ) ;
49
+ // const input = screen.getByLabelText("Category");
50
+ // fireEvent.change(input, { target: { value: "New Category" } });
51
51
52
- const valueAdded = 'Add: "New Category"' ;
53
- expect ( await screen . findByText ( valueAdded ) ) . toBeInTheDocument ( ) ;
52
+ // const valueAdded = 'Add: "New Category"';
53
+ // expect(await screen.findByText(valueAdded)).toBeInTheDocument();
54
54
55
- fireEvent . click ( screen . getByText ( valueAdded ) ) ;
55
+ // fireEvent.click(screen.getByText(valueAdded));
56
56
57
- const updatedCategories = [ ...selectedCategories , "New Category" ] ;
57
+ // const updatedCategories = [...selectedCategories, "New Category"];
58
58
59
- rerender (
60
- < QuestionCategoryAutoComplete
61
- selectedCategories = { updatedCategories }
62
- setSelectedCategories = { setSelectedCategories }
63
- />
64
- ) ;
59
+ // rerender(
60
+ // <QuestionCategoryAutoComplete
61
+ // selectedCategories={updatedCategories}
62
+ // setSelectedCategories={setSelectedCategories}
63
+ // />
64
+ // );
65
65
66
- expect ( screen . getByText ( "New Category" ) ) . toBeInTheDocument ( ) ;
67
- } ) ;
66
+ // expect(screen.getByText("New Category")).toBeInTheDocument();
67
+ // });
68
68
69
69
it ( "Remove a category from selected categories" , async ( ) => {
70
70
render (
0 commit comments