Open maipt1 opened 8 months ago
We have implemented e2e testing for components and releases. Please take a look at it and if you have any questions, please let me know. [SW360 New Frontend] Automation Test #212
@heliocastro @ag4ums @amritkv @arunazhakesan
Please feel free to comment for this PR!
Hey @KoukiHama & @hoangnt2 !
It looks awesome to me, as of now ! And moreover the library Cypress looks lightweight compared to the existing solutions, specifically for our project.
Need to dig deeper to understand it's usages in complex scenarios like tables.
Pre-condition:
New front-end commit id: f8d818333be404be5d9e56189fafe1d968788d29
How To Test?
1. Requirement software
Note: Recommended environment is Ubuntu 22.04 LTS, Nodejs v20.5.0, NPM 10.2.5
2. Setup project
Reference: https://docs.cypress.io/guides/getting-started/installing-cypress#System-requirements
3. Run Testing
3.1. Setup testing
Change cypress configuration
Change these configs, keep others:
3.2. Prerequisite:
3.3. Run with Cypress UI
3.4. Run in headless mode
Run all tests:
Run a specify test:
Limitation
Currently, the SW360 rest APIs use Liferay users to authenticate. However, there is no Liferay API to support creating users in Liferay. So to run this test code, we need to create a user manually to log into the system: