Integration Test
Test that submitting a registration form sends correct fields, the API saves them, and the page shows server errors.
Test that submitting a registration form sends correct fields, the API saves them, and the page shows server errors.
BK-2048Waiting for page request…
↳Looking at both the page request and stored result checks the connection between modules.
Handoffs create unique failures: A page can send startDate while a server expects start_date; each unit may work alone but fail together. Integration tests check requests, responses, and formats across neighboring modules.
Errors travel through the connection too: When the server rejects a registration, the page should show a useful reason. Checking only a successful write misses whether failure information reaches the right interface.
Run an integration test for registration saving: check form request fields, API input and response fields, database write, and whether server errors appear on the form. Report one valid and one invalid-input result afterward.