diff --git a/CLAUDE.md b/CLAUDE.md index 00e8ff2..881d355 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -181,6 +181,22 @@ PCs are in the machines table, identified by: - **API Token:** *(add token here if needed)* - **Repo:** `cproudlock/shopdb` +## Testing + +### Run Form Tests +After making changes to ASP pages, run the test suite to verify all forms work: +```bash +./tests/test_forms.sh +``` + +**Tests 41 endpoints:** page loads, add forms, create operations (notifications, equipment, printers, subnets, applications, KB articles, vendors, models, network devices), and API endpoints. + +**Cleanup test data:** +```bash +docker exec dev-mysql mysql -u root -prootpassword shopdb -e "DELETE FROM notifications WHERE notification LIKE 'AUTOTEST_%';" +# (similar for other tables - see tests/cleanup_test_data.sql) +``` + ## Quick Reference ### Start Dev Environment