def METHOD_NAME(app: Page):
    """Test that it correctly calls the callback on change."""
    # Check initial state:
    expect(app.get_by_test_id("stMarkdown").nth(7)).to_have_text(
        "value 8: female", use_inner_text=True
    )
    expect(app.get_by_test_id("stMarkdown").nth(8)).to_have_text(
        "selectbox changed: False", use_inner_text=True
    )
    app.get_by_test_id("stSelectbox").nth(7).locator("input").click()
    # Take a snapshot of the selection dropdown:
    selection_dropdown = app.locator('[data-baseweb="popover"]').first
    # Select last option:
    selection_dropdown.locator("li").first.click()
    # Check that selection worked:
    expect(app.get_by_test_id("stMarkdown").nth(7)).to_have_text(
        "value 8: male", use_inner_text=True
    )
    expect(app.get_by_test_id("stMarkdown").nth(8)).to_have_text(
        "selectbox changed: True", use_inner_text=True
    )
    # Change different date input to trigger delta path change
    empty_selectbox_input = app.get_by_test_id("stSelectbox").locator("input").first
    # Type an option:
    empty_selectbox_input.type("female")
    empty_selectbox_input.press("Enter")
    expect(app.get_by_test_id("stMarkdown").first).to_have_text(
        "value 1: female", use_inner_text=True
    )
    expect(app.get_by_test_id("stMarkdown").nth(7)).to_have_text(
        "value 8: male", use_inner_text=True
    )