Context
We currently have a suite of end-to-end (E2E) tests that run on every patch merge request. We'd like to add test cases for the 7 critical user journeys (CUJs).
User flow
- Find the function creation page in the Wikifunctions landing page
- Go to the function creation page
- Name my function
- Define my function inputs
- Add/remove input fields
- Define each input type
- Define each input label
- Define my function output type
- Optionally provide multilingual options for any of these fields
- Function name, function aliases, input labels
- Get educational information about optional/mandatory fields
- Publish my function
- Visualize function definition successfully saved
- IF ERROR: Visualize function saving errors in a clear way for me to correct and re-save
Hints
- code location for tests: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/WikiLambda/+/refs/heads/master/tests/selenium/
- information on Selenium testing on MediaWiki: https://www.mediawiki.org/wiki/Selenium