Page MenuHomePhabricator

MPIC: Improve and automate Frontend web testing
Closed, ResolvedPublic5 Estimated Story Points

Description

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

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.

Event Timeline

Milimetric set the point value for this task to 5.Oct 16 2024, 10:37 PM

The frontend UI automation testing will be developed using Selenium automation with Python as the Scripting language.

See write up here : https://docs.google.com/document/d/1K4yKYXp_QeNz6HthFMh67H9anh5v3_GhDSmqNk8kwsw/edit?tab=t.0

The actually automation set up for this will be implemented in this ticket T373715 ( This is already ongoing)