Tests based on the plyawright framework. Include the playwright CLI.
Test for frontend has name without 'request' word in the name. Test for checking request for API has name with 'request' name.
For launch the existing tests on the local machine:
- pull the repo
- open the directory
- Run the command
npm install
- run the test
node request.js
For launch the CLI tool for recording
- launch the command
npx playwright codegen <start page>
- Copy the generated code in the console interface
- Paste in the js.file and launch the tests
For generate report:
- install globally package
npm install i -g allure-commandline
- after running test launch the commannd:
allure serve
commannd ^^ create report and open in the browser For generatign report use command:
allure generate