diff --git a/tests/unit/gui/test_motor_move_group.py b/tests/unit/gui/test_motor_move_group.py index 8f0653db..fac30cf6 100644 --- a/tests/unit/gui/test_motor_move_group.py +++ b/tests/unit/gui/test_motor_move_group.py @@ -120,8 +120,12 @@ def test_spin_move_state_colors_actually_render(qtbot): spin.show() def value_area_color(): + # Sample inside the left padding (1px border + 6px QSS padding), not + # the text area: glyph positions are font-dependent and on CI's Linux + # fonts x=20 lands on a digit of "12.40", returning an antialiased + # glyph/background blend instead of the plain background color. img = spin.grab().toImage() - return img.pixelColor(20, img.height() // 2) + return img.pixelColor(4, img.height() // 2) state.update_actual(12.0) neutral = value_area_color()