Feature: Add GUI unit tests with pyautogui
andreped opened this issue · comments
Is your feature request related to a problem? Please describe.
It would be extremely useful to add GUI tests to verify that the software is working as intended.
Describe the solution you'd like
A way to solve this problem is to use pyautogui
to enable autoclicks, and make GUI-tests with a robot that essentially performs the workflow pipeline that a human operator might do. This can at least be done to test whether any errors occur (by checking the log) when performing tests.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
A good resource on how to test Qt applications on headless machines (which is the case for GitHub Actions) can be seen here.
Made a PR that adds a simple GUI launch test to the CIs: #57
However, further GUI tests should also be performed with pyautogui
or similar.
GUI launch test has been added in ec0f85c.
However, there is missing a GUI-autoclick test which would be helpful to know of all relevant UI elements are working as intended.