It's possible to edit an existing focus area at e.g. Special:EditFocusArea/FA3, and trying to edit a non-existing one with a validly formatted ID results in an error message:
The focus area Community Wishlist/Focus areas/FA45 was not found or was not properly saved.
But editing an invalid ID (e.g. via Special:EditFocusArea/FOO doesn't show any warning and opens a blank form. Saving the form discards the entered ID.
Instead, an error should be shown, explaining that the focus area can not be saved with the given ID.
Derived Requirement
Ensure that when a user navigates to Special:EditFocusArea with an invalid Focus Area ID (e.g., FOO), the system displays an error message explaining that the focus area cannot be saved with the given ID. The form should not load in an editable state when the ID format is invalid.
Test Steps
Test Case 1: Validate behavior for valid existing Focus Area ID
- Navigate to 'Special:EditFocusArea/FA3' on beta wiki.
- Observe the page load.
- ✅❓❌⬜ AC1: Confirm that the existing Focus Area loads correctly for editing without any error message.
Test Case 2: Validate behavior for non-existing but validly formatted Focus Area ID
- Navigate to 'Special:EditFocusArea/FA45' on beta wiki.
- Observe the displayed message.
- ✅❓❌⬜ AC2: Confirm that an error message appears stating 'The focus area Community Wishlist/Focus areas/FA45 was not found or was not properly saved.'
Test Case 3: Validate behavior for invalid Focus Area ID format
- Navigate to 'Special:EditFocusArea/FOO' on beta wiki.
- Observe the page load and any displayed content.
- ✅❓❌⬜ AC3: Confirm that an error message is displayed explaining that the focus area cannot be saved with the given ID and the form does not open in an editable state and no blank form appears.
QA Results - Meta Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T403351#11279055 |
| 2 | ✅ | T403351#11279055 |
| 3 | ✅ | T403351#11279055 |