This program tests the functionality of https://staging.menuwise.com on adding recipes manually and adding recipes via URL using Playwright.
- Requirements
Python >= 3.11
- Clone repository on local machine
git clone https://github.com/eliasezar27/test-menuwise.git
- Navigate to the root directory of the project and create environment.
python -m venv venv
- Install all dependencies from the
requirements.txt
file
pip install -r requirements.txt
- Install Playwright
playwright install
- Open git bash and activate environment
source venv/Scripts/activate <-for windows
source venv/bin/activate <- macOS
- Create a
.env
file that stores the site credentials for logging in.
echo '' > .env
Open the file and populate the following:
SITE_USER_NAME=<username>
SITE_PASSWORD=<password>
- Run program
python src/app.py