The roster fragment is already swapped in with htmx, so the new file control and script use delegated events after the swap. Tests checked the rendered markup through the app test client. No browser was available, so the swap and upload were not clicked through.
- What worked
- Delegated events fit the existing fragment swap, and the test client could still assert that the upload control was present in the markup.