test(forms): add unit tests for FormTextarea and FormSelect components

- Add comprehensive test coverage for FormTextarea and FormSelect components to validate rendering, accessibility, props forwarding, error handling, and behavior.
- Introduced function-scoped fixtures in e2e tests to ensure test isolation and address event loop issues with pytest-asyncio and SQLAlchemy.
This commit is contained in:
2026-01-06 17:54:49 +01:00
parent 82c3a6ba47
commit 8e16e2645e
3 changed files with 735 additions and 0 deletions

View File

@@ -368,3 +368,9 @@ async def e2e_org_with_members(e2e_client, e2e_superuser):
"user_id": member_id,
},
}
# NOTE: Class-scoped fixtures for E2E tests were attempted but have fundamental
# issues with pytest-asyncio + SQLAlchemy/asyncpg event loop management.
# The function-scoped fixtures above provide proper test isolation.
# Performance optimization would require significant infrastructure changes.