0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

fix(waveform): signals for x device can be defined from gui

This commit is contained in:
2025-04-03 15:32:12 +02:00
parent af28e2e433
commit 39164feb18
3 changed files with 53 additions and 3 deletions

View File

@ -119,6 +119,20 @@ def test_curve_setting_refresh(curve_setting_fixture, qtbot):
assert curve_setting.mode_combo.currentText() == "timestamp"
def test_change_device_from_target_widget(curve_setting_fixture, qtbot):
curve_setting, wf = curve_setting_fixture
wf.x_mode = "samx"
# Call refresh
curve_setting.refresh()
assert curve_setting.mode_combo.currentText() == "device"
assert curve_setting.device_x.isEnabled()
assert curve_setting.device_x.text() == wf.x_axis_mode["name"]
assert curve_setting.signal_x.text() == wf.x_axis_mode["entry"]
##################################################
# CurveTree
##################################################