You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a3c91e0
Browse filesBrowse the repository at this point in the historyBrowse files
User
committed
Guard remaining empty-form submits against the same native-reload race
The reviewer flagged that `test_form_basic`, `test_form_bootstrap`, and
`test_form_orm_model` use the identical bare `submit -> wait_for(error)`
pattern as `test_form_sync_events`, so they share the same latent exposure
to a native form submission (which reloads the page and resets state)
when the `DjangoForm` `componentDidMount` submit listener has not yet
attached under load.
Extend the shared `_retry_submit_until` guard to those three sites as
well. Added a `submit_selector` parameter because the bootstrap form uses
`button[type=submit]` instead of `input[type=submit]`.
Test-only; no product code touched. Verified: `hatch fmt` clean, full
`test_components.py` green under CPU-contention load (74 passed), and the
5-test form family green across repeated load runs.
0 commit comments