To make sure current improvements to the Cite VisualEditor code don't break the current use-cases it would be helpful to add some end to end test to validate they are still working.
Cases to test:
Scenario: I'm an user that want's to re-use references in the VisualEditor. Given I edit an article with existing references in the wikitext. And I open the re-use dialog. Then can see the existing references in the dialog. Given use the re-use dialog to re-use an existing reference from the article. And I click on one of the references to re-use. The the reference will be added another time to the article. And the reference shows the same footnote number. And the context dialog on one of the references shows it's being used twice. Given I edit an article and I re-used one of the existing references using the re-use dialog. When I save the page. Then the wikitext should reflect the re-use correctly. And the references re-used should have the same name attribute. PLACEHOLDER: Re-use from references defined in the `references` tag. PLACEHOLDER: Re-use from references with an existing name attribute.