Pre-requisite: python3 should be installed in the machine
- Create virtual env:
python3 -m venv bookingenv
- Activate Environment:
source bookingenv/bin/activate
- Install Package dependencies:
pip3 install -r requirements.txt
- Install playwright:
playwright install
- Run the test case: use command with --headed if wants to run with actual browser
python3 -m pytest --headed tests/test_book_attraction.py
python3 -m pytest tests/test_book_attraction.py
Pre-requisite: docker should be installed in the machine
- Make a build
make build
- Run the test
make test
- Make sure the date selected in the test file is in the future
- if docker fails, check if playwright image has a new version