feat: disable settings while task is running
@Sparkier In SettingsForm.test.tsx, line 12, you can change the render(...) method with the renderWithProviders(...) method from test-utils to resolve the errors thrown during testing. You can do the same for the individual render methods in SettingsModal.test.tsx (note you can also to change the mock path on line 14 to #/services/settingsService or ../../../services/settingsService too since it wasn't updated from the recent import path update)
The renderWithProviders method is a modified render method I have setup that renders the component with the Redux providers for these kind of scenarios.
Also, if you are able to add new it.todo("...") test cases in the relevant files so that I or someone else can take a look and try to add the test for it, it would be helpful.
E.g., it.todo("should disable settings while task is running") in the SettingsForm.test.tsx and any others regarding disabling/tooltip in the AutocompleteCombobox.test.tsx file.
I tried pushing the changes to this branch myself, but I am not entirely familiar with how branch sharing works on GitHub (I work on BitBucket)
@Sparkier In
SettingsForm.test.tsx, line 12, you can change therender(...)method with therenderWithProviders(...)method fromtest-utilsto resolve the errors thrown during testing. You can do the same for the individual render methods inSettingsModal.test.tsx(note you can also to change the mock path on line 14 to#/services/settingsServiceor../../../services/settingsServicetoo since it wasn't updated from the recent import path update)The
renderWithProvidersmethod is a modified render method I have setup that renders the component with the Redux providers for these kind of scenarios.Also, if you are able to add new
it.todo("...")test cases in the relevant files so that I or someone else can take a look and try to add the test for it, it would be helpful.E.g.,
it.todo("should disable settings while task is running")in theSettingsForm.test.tsxand any others regarding disabling/tooltip in theAutocompleteCombobox.test.tsxfile.
Thank you for the reminder! I can also put some time into the tests myself just probably not right now.
Thanks!