class_docstr: Test form submit button.
class_docstr_tok: ["Test","form","submit","button","."]
docstr: Test that a submit button can be disabled.
code: def test_disabled_submit_button(self):
      """Test that a submit button can be disabled."""
  
      with st.form("foo"):
          st.form_submit_button(disabled=True)
  
      last_delta = self.get_delta_from_queue()
      self.assertEqual(True, last_delta.new_element.button.disabled)
  
imports: from unittest.mock import MagicMock, patch
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from streamlit.runtime.state.session_state import RegisterWidgetResult
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 1 for calling the FormSubmitButtonTest obj's underlying member method code with example usage: obj.test_disabled_submit_button() without return types