@@ -63,82 +63,6 @@ describe('renderer/routes/Filters.tsx', () => {
6363 } ) ;
6464 } ) ;
6565
66- describe ( 'Users section' , ( ) => {
67- // it('should not be able to toggle the hideBots checkbox when detailedNotifications is disabled', async () => {
68- // await act(async () => {
69- // render(
70- // <AppContext.Provider
71- // value={{
72- // auth: mockAuth,
73- // settings: {
74- // ...mockSettings,
75- // detailedNotifications: false,
76- // },
77- // notifications: [],
78- // updateSetting,
79- // }}
80- // >
81- // <MemoryRouter>
82- // <FiltersRoute />
83- // </MemoryRouter>
84- // </AppContext.Provider>,
85- // );
86- // });
87- // expect(
88- // screen
89- // .getByLabelText('Hide notifications from Bot accounts')
90- // .closest('input'),
91- // ).toHaveProperty('disabled', true);
92- // // click the checkbox
93- // fireEvent.click(
94- // screen.getByLabelText('Hide notifications from Bot accounts'),
95- // );
96- // // check if the checkbox is still unchecked
97- // expect(updateSetting).not.toHaveBeenCalled();
98- // expect(
99- // screen.getByLabelText('Hide notifications from Bot accounts').parentNode
100- // .parentNode,
101- // ).toMatchSnapshot();
102- // });
103- // it('should be able to toggle the hideBots checkbox when detailedNotifications is enabled', async () => {
104- // await act(async () => {
105- // render(
106- // <AppContext.Provider
107- // value={{
108- // auth: mockAuth,
109- // settings: {
110- // ...mockSettings,
111- // detailedNotifications: true,
112- // hideBots: false,
113- // },
114- // notifications: [],
115- // updateSetting,
116- // }}
117- // >
118- // <MemoryRouter>
119- // <FiltersRoute />
120- // </MemoryRouter>
121- // </AppContext.Provider>,
122- // );
123- // });
124- // expect(
125- // screen
126- // .getByLabelText('Hide notifications from Bot accounts')
127- // .closest('input'),
128- // ).toHaveProperty('disabled', false);
129- // // click the checkbox
130- // fireEvent.click(
131- // screen.getByLabelText('Hide notifications from Bot accounts'),
132- // );
133- // // check if the checkbox is still unchecked
134- // expect(updateSetting).toHaveBeenCalledWith('hideBots', true);
135- // expect(
136- // screen.getByLabelText('Hide notifications from Bot accounts').parentNode
137- // .parentNode,
138- // ).toMatchSnapshot();
139- // });
140- } ) ;
141-
14266 describe ( 'Footer section' , ( ) => {
14367 it ( 'should clear filters' , async ( ) => {
14468 await act ( async ( ) => {
0 commit comments