Context:
We had some assumptions on what HTML VE actually needs to emit for Parsoid to convert safely back to Wikitext. The issues documented in T400013: VisualEditor deletes list-defined references if there's a reference containing an ISBN and magic linking is enabled and T400038: VisualEditor deletes list-defined references when editing one of them showed us that some of these assumptions were not true and furthermore that there's a certain amount of test coverage missing that would covered issues like the once produced. The issues were along the lines of:
Agenda:
- Add a Converter test first with the original Wikitext using the TOOL
- (Maybe) Add a VE->Parsoid one directional test to visualEditorHtml2WtTests.txt with the output of fromData body
- Add a variation of the Converter test that includes modifications we want to test using the TOOL
- Add a VE->Parsoid one directional test to visualEditorHtml2WtTests.txt with the output of fromData body
- Ideally the test names in the Converter match test names in the Parsoid tests
Planed test
- Converter tests covering the usage of stored original HTML
- Without reflist
- With list defined refs
- With changes on list defined refs
- One-directional Parsoid tests dealing with minimal VE HTML output to convert to Wikitext
- With list defined refs
- With main+details
- With edits
- A test with list defined references that include a template
- With an edit changing a template parameter