errorLogger.js:19 TypeError: Cannot read properties of undefined (reading 'startsWith')
at Proxy.loadFromData (block.js:289:27)caused by
reasonOther.value = blockData.reason;
Reproduction steps:
- Go to Special:Block and enter a blocked user
- Click "edit" next to the block in the accordian
Expected:
- The block is loaded into the form for editing
Actual:
- TypeError: Cannot read properties of undefined (reading 'startsWith')
Derived Requirement
Ensure that the "edit" functionality in the Special:Block page loads block data without raising a TypeError when blockData.reason is undefined.
Test Case 1: Verify Block Data Loading Without Error When Using "Edit"
- Navigate to Special:Block on the Minerva skin.
- Enter the username of a previously blocked user in the input field.
- Click on the "edit" link in the accordion for the existing block.
- ✅❓❌⬜ AC1: Confirm that the block details are loaded into the form without raising a TypeError or other error in the console.
QA Results - Test Wiki
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T383579#10458498 |
