Summary of test cases for Community Configuration form:
✅ DONE (1) (from this comment on T356622).
Getting error communityconfiguration-schema-validation-error in the Console on wiki/Special:CommunityConfiguration/FooBar.
- click on Submit button without entering anything
- The error is in the Console only; no warning to a user.
✅ DONE (2) (from this comment on T360148)
Error handling on MediaWiki:ExampleConfig.json
content | result |
---|---|
{} | |
[] | |
empty page | |
✅ DONE (3) Error handling for Special:CommunityConfiguration
- edit/publish attempts by users without editing rights
- invalid values for the fields, including empty values
- https://phabricator.wikimedia.org/T363474#9765635
- filed T364056: CommunityConfiguration: saving an empty value for numerical input does not behave correctly
- offline users (including users logged out) ✅ DONE
✅ DONE (4) refer to T360277 for more details
- check the search for Special page (and a subpage) - i.e. check for SpecialCommunityConfigurationEditor, SpecialCommunityConfigurationDashboard
- enter Special page title in the url
- Special:CommuityConfigurationDashboard and other invalid pages - are not listed in the search suggestions and No such special page is displayed
- Special:EditGrowthConfig - redirects to Special:CommuityConfiguration
- check that Special:SpecialPages does not list Special:EditGrowthConfigpage; Special:CommunityConfiguration should be present there.
✅ DONE (5) T362042
- changes in schema that cannot be handled by UI form, e.g. required properties status is changed, added/removed properties.
- extension.json or configuration store becomes unavailable
What was checked | How it was checked | Results |
---|---|---|
CommunityConfiguration extension is not present/unreachable | mv CommunityConfiguration CommunityConfiguration_new | MediaWiki is unable to load the extension CommunityConfiguration. Please check that the extension's name is correct and all of its files are properly installed. |
CommunityConfiguration extension is not installed | wfLoadExtension( 'CommunityConfiguration' is commented out | No such special page for Special:CommunityConfiguration |
Special:SpecialPages produces an error page: [4d304c1441ff380b0c39ca60] /wiki/Special:SpecialPages Wikimedia\Services\NoSuchServiceException: No such service: CommunityConfiguration.WikiPageConfigReader | ||
Adding properties to json pages when CommunityConfiguration extension is disabled | an additional property was added to MediaWiki:ExampleConfig.json | When CommunityConfiguration extension gets enabled again, no errors on MediaWiki:ExampleConfig.json or Special:CommunityConfiguration |
[Check after deployment to production]
T358659: Client side form validation
✅ DONE T359928: Editor: display success and error messages when submitting the form - checked in testwiki wmf.9