- Clone this repo
git clone [email protected]:krantos/qubika_2.git
-
Have installed Node 21.0 or above
-
Copy the
.env.example
to.env.staging
and use set the staging values
cp .env.example .env.staging
- Then execute
yarn install
yarn playwright install
yarn test
if everything goes fine, you should get a green test and the report being automatically open in your default browser.
To not get any surprises here are a list of possible failures
-
Validate that you have the correct url to the web project and the api project
-
Visual regression testing does not match the computer in which the test is running.
- Delete the images in the folder
tests/qubika_playwright.test.js-snapshots
- run again the test, and you should get a fail due to not having a screenshot to compare.
- run again and this issue should be solved.
-
Email is wrong. Check the
src/test_files/data.json
file and see if indicates 'Invalid email'
- run again the test.
-
Category UI validation could fail due to a current bug on the pagination system.
- re run the test.