- Fixed admin user seeding to prevent foreign key constraint violations - Transformed API responses from snake_case to camelCase for test compatibility - Implemented missing /admin/content route with pagination and filtering - Fixed SQL parameter binding issues in collections API - Updated test selectors to match actual HTML structure - Enhanced integration test workflows and error handling - Added comprehensive test cleanup utilities 馃 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
418 B
SQL
20 lines
418 B
SQL
-- Check for test users in the database
|
|
-- Run this with: wrangler d1 execute sonicjs-dev --local --file=scripts/check-test-users.sql
|
|
|
|
SELECT
|
|
id,
|
|
email,
|
|
username,
|
|
first_name,
|
|
last_name,
|
|
role,
|
|
created_at
|
|
FROM users
|
|
WHERE
|
|
email LIKE '%test%'
|
|
OR email LIKE '%temp%'
|
|
OR email LIKE '%e2e%'
|
|
OR username LIKE '%test%'
|
|
OR username LIKE '%temp%'
|
|
OR username LIKE '%e2e%'
|
|
ORDER BY created_at DESC; |