You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**IMPORTANT**: Always prefer using the provided scripts in the `scripts/` directory rather than running commands directly:
53
58
-**Testing**: Use `./scripts/run-server-tests.sh` instead of `python -m unittest`
54
-
-**E2E Testing**: Use `npm run test:e2e` in the `client/` directory for Playwright tests
59
+
-**E2E Testing**: Use `./scripts/run-e2e-tests` instead of `npm run tests:e2e`
55
60
-**Environment Setup**: Use `./scripts/setup-environment.sh` for initial setup
56
61
-**Application Start**: Use `./scripts/start-app.sh` to launch the application
57
62
@@ -65,7 +70,7 @@ pets-workshop/
65
70
-**Data Fetching**: Fetch data on the server side when possible
66
71
-**Styling**: Use Tailwind utility classes, avoid custom CSS unless necessary
67
72
-**Routing**: File-based routing through Astro's pages directory
68
-
-**Test Identifiers**: Always include `data-testid` attributes for E2E testing resilience (see [`test-identifiers.md`](.github/instructions/test-identifiers.md))
73
+
-**Test Identifiers**: Always include `data-testid` attributes for E2E testing resilience (see [`test-identifiers.md`](./instructions/test-identifiers.md))
69
74
70
75
### Database Patterns
71
76
-**Models**: Use SQLAlchemy declarative base with proper relationships
@@ -77,11 +82,7 @@ pets-workshop/
77
82
Below are the only types of tests we use in this project. Do not add additional test types unless instructed otherwise.
78
83
79
84
-**E2E Tests**: Playwright tests in `client/e2e-tests/` cover full user workflows
80
-
-**Test Structure**: Organize tests by page/feature (homepage, dog-details, API integration)
81
-
-**Test Commands**: Use `npm run test:e2e` for all tests, `npm run test:e2e:ui` for debugging
82
-
-**Test Identifiers**: Always use `data-testid` attributes for reliable element selection (see [`test-identifiers.md`](.github/instructions/test-identifiers.md))
83
-
-**Server Tests**: Python unittest framework for backend API testing
84
-
-**Test Coverage**: Include tests for user interactions, API responses, and error handling
85
+
-**Unit tests**: Unit tests for Flask endpoints and utilities, stored in `server/tests`
0 commit comments