Testing button click
I'm using an accordion widget (
v.ExpansionPanels
), where each step has a Button(label="Confirm", ...)
that, on click, bubbles up a state change, which, among other things, moves the accordion to the next step. This works as expected in the frontend. However, it does not seem to work in the test.
Is there some special way of testing a button's click? Note that it does change the confirmed step's state to SUCCESS. But the accordion does not move to the next step (should be indicated by the following step moving to a CONFIGURED step). Again, this works in the frontend. Just not in the test.
While we're at it, ideally, I'd like to check that the accordion selected index has changed. This is possible with ipywidgets.Accordion
, which exposes its selected_index
trait. But ipyvuetify.ExpansionPanels
does not seem to do so. I tried value
(hopeful) and v_model
(less hopefull), but neither worked.0 Replies