This project is designed to show how testing of search functionality can be performed, using playwright as a testing framework.
To install the necessary dependencies, run the following command:
npm install
NOTE: After install packages, the process of browser download would be started. (This is required for playwright to work)
NOTE: All tests are depend on FCCDCF cookie.
Before executing any test it would run global.setup.ts
setup to obtain it and use in context of all other test & instances.
NOTE: Before any test execution, you should create/rename .env
file and specify correct URL address.
To run all tests, use the following command:
npm run test
To run tests for the search functionality, use the following command:
npm run test:search
To align with the format across all files, prettier is used.
npm run prettier
This project is licensed under the MIT License.