Some checks failed
Chore App Build, Test, and Push Docker Images / build-and-push (push) Failing after 1m44s
- Added E2E test setup in `auth_api.py` with `/e2e-seed` endpoint for database reset and test user creation. - Integrated Playwright for end-to-end testing in the frontend with necessary dependencies in `package.json` and `package-lock.json`. - Created Playwright configuration in `playwright.config.ts` to manage test execution and server setup. - Developed new skills for Playwright best practices, visual regression, smoke test generation, and self-healing tests. - Implemented new test cases for chore creation in `chores-create.smoke.spec.ts` and `chores-create.spec.ts`. - Added page object models for `ChildEditPage` and `LandingPage` to streamline test interactions. - Updated `.gitignore` to exclude Playwright reports and test results. - Enhanced documentation in `copilot-instructions.md` for testing and E2E setup.
1.1 KiB
1.1 KiB
name, description, disable-model-invocation
| name | description | disable-model-invocation |
|---|---|---|
| flask-backend | Starts the Flask backend using the local virtual environment. | true |
Instructions
- Locate Environment: Check for a virtual environment folder (usually
.venvorvenv) inside the/backenddirectory. - Activation Logic:
- If on Windows: Use
backend\.venv\Scripts\activate - If on macOS/Linux: Use
source backend/.venv/bin/activate
- If on Windows: Use
- Set Environment Variables:
FLASK_APP:main.pyFLASK_DEBUG:1DB_ENV:e2eDATA_ENV:e2eSECRET_KEY:dev-secret-key-change-in-productionREFRESH_TOKEN_EXPIRY_DAYS:90
- Command: Execute the following via the
terminaltool:flask run --host=0.0.0.0 --port=5000 --no-debugger --no-reload - Execution: Run
python -m flask run --host=0.0.0.0 --port=5000Note: Usingpython -m flaskensures the version inside the venv is used. - Verification: After running, check the terminal output for "Running on http://0.0.0.0:5000". If it fails, check if port 5000 is already in use.