What is the problem?
In the Namespaces restriction field, do not include the Special or Media namespaces in the dropdown options.
Only include namespaces with id >= 0.
Steps to reproduce problem
- Go to Special:Block (e.g. https://test.wikipedia.beta.wmflabs.org/wiki/Special:Block)
- Click the "Partial" radio button
- Click inside the "Namespaces" field
Expected behaviour:
- The dropdown does not show "Special" or "Media"
- Searching "Special" or "Media" should return nothing
- "Special" or "Media" should not be accepted options for the field
Environment
Wiki(s): https://test.wikipedia.beta.wmflabs.org MediaWiki 1.43.0-alpha (45777c2) 10:59, 21 October 2024.
Screenshots
Derived Requirement
Ensure that the "Namespaces" restriction field on Special:Block excludes the "Special" and "Media" namespaces from the dropdown options. Namespaces with id >= 0 should be the only options displayed, and searching or selecting "Special" or "Media" should return no results.
BDD
gherkin Feature: Restrict Namespace Options in Special:Block Scenario: Exclude "Special" and "Media" namespaces in dropdown options Given the user is on the Special:Block page And the user selects the "Partial" block type When the user clicks in the "Namespaces" field dropdown Then the dropdown should not show "Special" or "Media" namespaces Scenario: Exclude "Special" and "Media" namespaces from search results in dropdown Given the user is on the Special:Block page And the user selects the "Partial" block type When the user types "Special" or "Media" in the "Namespaces" field Then no results should be returned for "Special" or "Media"
Test Result - Beta|Prod
Status: ✅ PASS / ❓Need More Info / ❌ FAIL
Environment: beta/xyzwiki
OS: macOS Sonoma 15.0
Browser: Chrome 130
Device: MBA
Emulated Device: NA
Test Artifact(s):
Test Steps
Test Case 1: Exclude "Special" and "Media" Namespaces in Dropdown Options
- Go to Special:Block.
- Click the "Partial" radio button to reveal the "Namespaces" field.
- Click inside the "Namespaces" field to view dropdown options.
- ✅❓❌⬜ AC1: Confirm that "Special" and "Media" namespaces are not shown in the dropdown options.
Test Case 2: Exclude "Special" and "Media" Namespaces from Search Results
- Repeat steps 1-3 from Test Case 1.
- Type "Special" in the "Namespaces" field.
- ✅❓❌⬜ AC2: Confirm that no results appear for "Special."
- Clear the field and type "Media" in the "Namespaces" field.
- ✅❓❌⬜ AC3: Confirm that no results appear for "Media."
QA Results - Test Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T377716#10262892 |
2 | ✅ | T377716#10262892 |
3 | ✅ | T377716#10262892 |