code: def test_toggle_values_on_click(app: Page):
      """Test that st.toggle updates values correctly when user clicks."""
      toggle_elements = app.locator(".stCheckbox")
      expect(toggle_elements).to_have_count(8)
  
      for toggle_element in toggle_elements.all():
          toggle_element.click(delay=50)
          wait_for_app_run(app)
  
      markdown_elements = app.locator(".stMarkdown")
      expected = [
          "toggle 1 - value: False",
          "toggle 2 - value: True",
          "toggle 3 - value: True",
          "toggle 4 - value: True",
          "toggle 4 - clicked: True",
          "toggle 5 - value: False",
          "toggle 6 - value: True",
          "toggle 7 - value: True",
          "toggle 8 - value: True",
      ]
  
      for markdown_element, expected_text in zip(
          markdown_elements.all(), expected
      ):
          expect(markdown_element).to_have_text(
              expected_text, use_inner_text=True
          )
  
imports: from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction, wait_for_app_run
label_desc: Use image node_id 3 for calling a global function with example usage: test_toggle_values_on_click(app) without return types