When using the Minerva skin to edit a page that is not wikitext it loads the JS editor for the first section.
Some times this unexpectedly works ie. when editing json
other times it doesn't work eg. wikisource -(editor does not show text that needs translating rendering it unusable)
acceptance criteria
Visiting any page that is not wikitext and clicking edit:
- should load the fallback editor (e.g. MediaWiki:Mobile.css)
- should not pass the section parameter (non-wikitext content does not have sections)
testing criteria
We changed the editor behaviour under certain circumstances. We want to verify that this didn't break editing anywhere.
- Visit https://en.wikipedia.beta.wmflabs.org/wiki/User:Jdlrobson/common.js (where Jdlrobson is your username)
- Click edit icon
- Expected: it should reload the page
- Visit https://en.wikipedia.beta.wmflabs.org/wiki/Foo
- Click edit icon
- Expected: it should load an overlay
- Hit random
- Make sure you can edit the page (or at least be notified why you can't edit the page)