Problem/Motivation
ModulesUninstallForm buildForm() does not add the 'core/drupal.tableresponsive'
library, whereas the corresponding install form ModulesListForm does add this library. The missing library means that javascript tests for checking the filtering of modules on the uninstall form does not work. The page does not refresh with any changes when a filter value is entered.
Steps to reproduce
See the uploaded recording of the failing test for module_filter. I am guessing that the problem is not noticed when using the UI form interactively, as maybe some other process is covering the responsive refeshing. But in the pared-down javascript test it is missing and the test fails. The test for the install page works fine as-is, because the drupal.tableresponsive
is already added in the form.
Proposed resolution
Add $form['#attached']['library'][] = 'core/drupal.tableresponsive';
to the buildForm() function.
See uploaded recording of the test which works when this library is added.