Skip to content

Conversation

@emunsing
Copy link

@emunsing emunsing commented Jan 4, 2026

1-liner fix to add a placeholder value to 8359. I'm not sure how to create a UI test for a placeholder value; happy to create one with help but given that this is a 1-line aesthetic change I don't know if that's needed.

@philippjfr
Copy link
Member

Thanks @emunsing, I don't think we really need a UI test, a simply unit test checking that the underlying model inherits the correct placeholder value should be sufficient.

@philippjfr
Copy link
Member

philippjfr commented Jan 5, 2026

def test_int_input_placeholder(document, comm):

    int_input = IntInput(placeholder='Foo", name='IntInput')

    widget = int_input.get_root(document, comm=comm)

    assert widget.active == "Foo"
    
    int_input.placeholder = "Bar"
    assert widget.placeholder == "Bar"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants