BSC-ES / autosubmit-gui

The Autosubmit Graphical User Interface (GUI) is the web-based Autosubmit frontend, allowing users to discover, monitor, and analyze experiments. It is based on ReactJS and relies on the Autosubmit API as the middleware to get experiment information.
MIT License
2 stars 0 forks source link

Use e2e tests in the UI #93

Open kinow opened 10 months ago

kinow commented 10 months ago

In GitLab by @bdepaula on Nov 23, 2023, 11:13

We can run e2e tests that allow us to test things like components being mounted/unmounted, DOM changes, events, and other things that would be difficult to do with just unit tests, karma, qunit, jest, etc.

I used Cypress + offline data in the past. The offline data was served with a json-server and saved JSON data, used both for e2e tests and for quick prototype and development. Maybe we could use something similar.

There are alternatives to Cypress, like Nightwatch and Selenium too.

One thing that blocks this issue right now, I think, is the necessity to have a worker with these tools in GitLab. As far as I recall, our single worker is a VM with a shared Conda environment, used mainly/exclusively for Autosubmit Python. Messing up with that might break the worker and Autosubmit (as I did some months ago).

kinow commented 10 months ago

In GitLab by @bdepaula on Nov 23, 2023, 11:14

Some example projects with e2e tests:

kinow commented 7 months ago

In GitLab by @ltenorio on Feb 6, 2024, 17:06

mentioned in commit 1a7dfe14b3f4a9b0a2e697311107bc0d76a94268

kinow commented 5 months ago

In GitLab by @ltenorio on Apr 16, 2024, 12:19

Already made e2e tests for the main pages of the new GUI and achieved a 57.71% coverage :tada:

image