We are embarking on the migration journey to Codex for our FileImporter Extension and want to enhance our testing infrastructure by incorporating the Cypress test runner. Cypress is known for its robust end-to-end and component testing capabilities, therefore this is a great opportunity to explore the capabilities of Cypress for Vue tests.
Tasks
- Set up Cypress to work seamlessly with the FileImporter Extension within the Codex environment.
- Investigate Cypress's features for e2e & component testing and identify areas where it can enhance our testing suite.
- Document the setup process and any insights gained during the exploration and integration phases for future reference.
Notes:
- use node version 18 (nvm use v18.0.0)
- run npm install (not npm install cypress)
- chromium worked for all of us (others got redirect loop)
- run headless tests: docker run -it --add-host dev.wiki.local.wmftest.net:host-gateway -v $PWD:/e2e -w /e2e cypress/included:latest
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/FileImporter/+/976231