MCPcopy
hub / github.com/streamlit/streamlit / test_handle_value_changes

Function test_handle_value_changes

e2e_playwright/st_date_input_test.py:158–163  ·  view source on GitHub ↗

Test that st.date_input has the correct value after typing in a date.

(app: Page)

Source from the content-addressed store, hash-verified

156
157
158def test_handle_value_changes(app: Page):
159 """Test that st.date_input has the correct value after typing in a date."""
160 first_date_input_field = get_date_input(app, "Single date").locator("input")
161 first_date_input_field.fill("1970/01/02")
162 first_date_input_field.blur()
163 expect_markdown(app, "Value 1: 1970-01-02")
164
165
166def test_empty_date_input_behaves_correctly(

Callers

nothing calls this directly

Calls 3

get_date_inputFunction · 0.90
expect_markdownFunction · 0.90
locatorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…