Loading
Issue #3612755: Recalculate Apply button state after select-all
Closes #3612755
Summary
Recalculates the VBO Apply button state after “Select / deselect all results” changes the visible row checkboxes.
Adds a FunctionalJavascript regression test covering a one-page View using VBO's default settings.
Testing
Before the fix, the focused regression test fails with:
The Apply button should be enabled when an action and rows are selected.
Failed asserting that true is false.With the fix applied:
Tests: 1, Assertions: 44The following checks also pass:
git diff --check
node --check js/frontUi.js
php -l tests/src/FunctionalJavascript/ViewsBulkOperationsBulkFormTest.php
phpcs --standard=Drupal tests/src/FunctionalJavascript/ViewsBulkOperationsBulkFormTest.phpAI disclosure
AI was used in preparing this merge request. ChatGPT assisted with code inspection, drafting the regression test and fix, running local tests through a user-controlled shell tool, and reviewing the written explanation.
I reviewed and corrected the work, reproduced the failure manually, verified the test fails without the fix and passes with it, and take responsibility for the submitted code.