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.
25 lines
1.1 KiB
Markdown
25 lines
1.1 KiB
Markdown
---
|
|
name: flask-backend
|
|
description: Starts the Flask backend using the local virtual environment.
|
|
disable-model-invocation: true
|
|
---
|
|
|
|
# Instructions
|
|
|
|
1. **Locate Environment:** Check for a virtual environment folder (usually `.venv` or `venv`) inside the `/backend` directory.
|
|
2. **Activation Logic:**
|
|
- If on **Windows**: Use `backend\.venv\Scripts\activate`
|
|
- If on **macOS/Linux**: Use `source backend/.venv/bin/activate`
|
|
3. **Set Environment Variables:**
|
|
- `FLASK_APP`: `main.py`
|
|
- `FLASK_DEBUG`: `1`
|
|
- `DB_ENV`: `e2e`
|
|
- `DATA_ENV`: `e2e`
|
|
- `SECRET_KEY`: `dev-secret-key-change-in-production`
|
|
- `REFRESH_TOKEN_EXPIRY_DAYS`: `90`
|
|
4. **Command:** Execute the following via the `terminal` tool:
|
|
`flask run --host=0.0.0.0 --port=5000 --no-debugger --no-reload`
|
|
5. **Execution:** Run `python -m flask run --host=0.0.0.0 --port=5000`
|
|
_Note: Using `python -m flask` ensures the version inside the venv is used._
|
|
6. **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.
|