def METHOD_NAME(client):
    response = client.get("/dev/examples/modal")
    assert response.status_code == 200
    assert "jf-modal-dialog" in response.context["modal_html"]
    # We need to make the main content hidden when pre-rendering,
    # or else the content behind the modal will be keyboard-navigable.
    # Perhaps someday when the "inert" attribute is widely supported,
    # we could use that instead.
    assert b'<div id="main" hidden' in response.content