Feature summary:
Implement URL parameters, like wpAutoBlock and wpWatch, to preset the checkboxes in Special:Block. All fields listed in https://www.mediawiki.org/wiki/Manual:Block_and_unblock#URL_parameters should be able to preset via the URL.
Steps to reproduce:
- Set $wgUseCodexSpecialBlock = true;
- Log in as an admin
- Navigate to e.g. /Special:Block?wpWatch=1.
- Note that the Watch this user's user and talk pages checkbox is checked.
Derived Requirement
Ensure that the URL parameters wpAutoBlock and wpWatch preset the corresponding checkboxes in Special when $wgUseCodexSpecialBlock = true.
BDD
Feature: URL Parameters Preset Checkboxes on Special:Block
Scenario: Ensure wpWatch URL parameter presets the Watch checkbox
Given the user is logged in as an admin with `$wgUseCodexSpecialBlock = true` When the user navigates to `/Special:Block?wpWatch=1` Then the "Watch this user's user and talk pages" checkbox should be checked
Scenario: Ensure wpAutoBlock URL parameter presets the Autoblock checkbox
Given the user is logged in as an admin with `$wgUseCodexSpecialBlock = true` When the user navigates to `/Special:Block?wpAutoBlock=1` Then the "Automatically block the last IP address used by this user" checkbox should be checked
Test Steps
Test Case 1: Ensure wpWatch Parameter Presets Watch Checkbox
- Set $wgUseCodexSpecialBlock = true in the configuration.
- Log in as an admin and navigate to /Special:Block?wpWatch=1.
- ✅❓❌⬜ AC1: Confirm that the "Watch this user's user and talk pages" checkbox is not checked.
Test Case 2: Ensure wpAutoBlock Parameter Presets Autoblock Checkbox
- Set $wgUseCodexSpecialBlock = true in the configuration.
- Log in as an admin and navigate to /Special:Block?wpAutoBlock=1.
- ✅❓❌⬜ AC2: Confirm that the "Automatically block the last IP address used by this user" checkbox is checked.
QA Results - Test Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T368583#10220055 |
1 | ✅ | T368583#10220055 |