0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 11:41:49 +02:00

refactor: move add/remove bundle to scan group box

This commit is contained in:
2024-10-11 11:44:01 +02:00
parent 523cc43572
commit e3d0a7bbf9
3 changed files with 65 additions and 55 deletions

View File

@ -355,14 +355,14 @@ def test_add_remove_bundle(scan_control, scan_name, qtbot):
assert initial_num_of_rows == expected_scan_info["arg_bundle_size"]["min"]
scan_control.button_add_bundle.click()
scan_control.button_add_bundle.click()
scan_control.arg_box.button_add_bundle.click()
scan_control.arg_box.button_add_bundle.click()
if expected_scan_info["arg_bundle_size"]["max"] is None:
assert scan_control.arg_box.count_arg_rows() == initial_num_of_rows + 2
# Remove one bundle
scan_control.button_remove_bundle.click()
scan_control.arg_box.button_remove_bundle.click()
qtbot.wait(200)
assert scan_control.arg_box.count_arg_rows() == initial_num_of_rows + 1