mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 11:41:49 +02:00
tests(safeslot): wait for panels to be properly rendered
This commit is contained in:
@ -371,6 +371,7 @@ def test_rpc_call_with_exception_in_safeslot_error_popup(connected_client_gui_ob
|
|||||||
gui = connected_client_gui_obj
|
gui = connected_client_gui_obj
|
||||||
|
|
||||||
gui.main.add_dock("test")
|
gui.main.add_dock("test")
|
||||||
|
qtbot.waitUntil(lambda: len(gui.main.panels) == 2) # default_figure + test
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
gui.main.add_dock("test")
|
gui.main.add_dock("test")
|
||||||
# time.sleep(0.1)
|
# time.sleep(0.1)
|
||||||
|
Reference in New Issue
Block a user