code: def test_resets_to_default_single_value_if_calendar_closed_empty(
      app: Page,
  ):
      """Test that single value is reset to default if calendar closed empty."""
      app.get_by_test_id("stDateInput").first.click()
  
      # Select '1970/01/02'
      app.locator(
          '[data-baseweb="calendar"] [aria-label^="Choose Friday, January 2nd 1970."]'
      ).first.click()
  
      expect(app.get_by_test_id("stMarkdown").first).to_have_text(
          "Value 1: 1970-01-02", use_inner_text=True
      )
  
      # Close calendar without selecting a date
      date_input_field = app.locator(".stDateInput input").first
      date_input_field.focus()
      date_input_field.clear()
  
      # Click outside of the calendar to submit value
      app.get_by_test_id("stMarkdown").first.click(delay=100)
  
      # Value should be reset to default
      expect(app.get_by_test_id("stMarkdown").first).to_have_text(
          "Value 1: 1970-01-01", use_inner_text=True
      )
  
file_path: streamlit/e2e_playwright/st_date_input_test.py
imports: from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction
label_desc: Use image node_id 11 for calling a global function with example usage: test_resets_to_default_single_value_if_calendar_closed_empty(app) without return types