0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

tests(safeslot): wait for panels to be properly rendered

This commit is contained in:
2025-01-09 14:55:31 +01:00
parent b4a240e463
commit fb545eebb3

View File

@ -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)