User:IIgwilo (WMF)/Real Time Preview for Wikitext

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by DWalden (WMF) (talk | contribs) at 14:32, 18 November 2021. It may differ significantly from the current version.

Test strategy for the Real Time Preview for Wikitext wish.

Project Documentation and High-level Requirements

Quality Criteria[1]

  • The preview should be a faithful representation of how the article will look once published
  • It should handle invalid wikitext in a way that helps the user recognise and correct errors
  • Edits the user makes to the wikitext should be displayed in the preview in a reasonable amount of time
  • Users should be happy with this feature from a usability perspective[2]

Risks

  • The real-time preview viewport is small. It might look different compared to viewing the article full-screen.
  • Will a user be able to use this feature alongside other edit previewing features such as "Show changes"?

Oracles[3][4]

  • The real-time preview should match the "normal" preview
  • The real-time preview should match the actual article once it is published

Coverage Criteria

  • Coverage of wikitext (including invalid wikitext)
  • Different content models, wikis, namespaces
  • Section edits
  • Browser coverage
  • How this feature interacts with other features of the wikitext editor

Techniques

  • HTML comparison
    • Compare the HTML of the preview with the HTML of the actual article (using a diff tool, for example)
  • Stress test
    • What happens when we try to preview a huge amount of wikitext
      • E.g. try using preview on an article like en:Barack_Obama (no doubt there are even bigger articles)
    • How often can we update the preview in a short period of time? Can we overload it?

Test Environments

TBD. Probably beta primarily.

References