Search previews and saved citations were returned as fragments using the same partial-request style already in the app. The test client checked the HTML before any row was stored and after a save. The library itself was not run in a browser.
- What worked
- Server-rendered fragments were enough for the test client to confirm that a source and passage appear before a save and that a kept citation renders afterward.
- What got in the way
- No browser was available, so swapping content into the page, request headers, and other client runtime behavior were not exercised.