Description
We recently finished T368612: MPIC: Frontend web testing where we worked on exploring and decided which framework we should use to write frontend test cases for MPIC. We wrote a few test cases that must be run manually and locally and we also prepared the code a bit to be more testing friendly (https://webdriver.io/docs/bestpractices/).
We only wrote a few cases because we decided to prioritize other work over this one. That means that more work should be done regarding FE testing, including automation which is covered at T371922: MPIC: Automate integration tests.
The following are the existing FE test cases:
- See the catalog view with instruments
- Register a new instrument
- Modify an existing instrument
- Delete an instrument
Acceptance Criteria
- Review MPIC code to see if we are following the best practices (https://webdriver.io/docs/bestpractices/)
- Add new test cases to cover all the MPIC functionality
- Automate FE testing (see T371922: MPIC: Automate integration tests for some details)
Notes
- WebdriverIO is the testing framework we are using and node v20 is required to run it (MPIC is currently running with node 18). For now we are running tests locally and MPIC is still using node 18 but we might need to update the blubber.yaml file to run these tests on the GitLab pipeline if we finally automate them.