MCPcopy
hub / github.com/streamlit/streamlit / test_handles_date_selection

Function test_handles_date_selection

e2e_playwright/st_date_input_test.py:146–155  ·  view source on GitHub ↗

Test that selection of a date on the calendar works as expected.

(app: Page)

Source from the content-addressed store, hash-verified

144
145
146def test_handles_date_selection(app: Page):
147 """Test that selection of a date on the calendar works as expected."""
148 get_date_input(app, "Single date").locator("input").click()
149
150 # Select '1970/01/02':
151 app.locator(
152 '[data-baseweb="calendar"] [aria-label^="Choose Friday, January 2nd 1970."]'
153 ).first.click()
154
155 expect_markdown(app, "Value 1: 1970-01-02")
156
157
158def test_handle_value_changes(app: Page):

Callers

nothing calls this directly

Calls 4

get_date_inputFunction · 0.90
expect_markdownFunction · 0.90
locatorMethod · 0.80
clickMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…