code: def test_handles_time_selection_via_typing(app: Page):
      """Test that selection of a time via typing works correctly."""
      time_input_field = app.get_by_test_id(
          "stTimeInput"
      ).first.locator("input")
  
      # Type an option:
      time_input_field.type("00:15")
      time_input_field.press("Enter")
  
      # Check that selection worked:
      expect(app.get_by_test_id("stMarkdown").first).to_have_text(
          "Value 1: 00:15:00", use_inner_text=True
      )
  
      # Type an another option that doesn't exist in the dropdown:
      time_input_field.type("00:16")
      time_input_field.press("Enter")
  
      # Check that selection worked:
      expect(app.get_by_test_id("stMarkdown").first).to_have_text(
          "Value 1: 00:16:00", use_inner_text=True
      )
  
file_path: streamlit/e2e_playwright/st_time_input_test.py
imports: from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction
label_desc: Use image node_id 5 for calling a global function with example usage: test_handles_time_selection_via_typing(app) without return types