mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix: Failing UI tests after recent change
Introduced with afc6d7a463
Pull Request: https://projects.blender.org/blender/blender/pulls/155899
This commit is contained in:
parent
c85905c645
commit
4ffdc93378
1 changed files with 11 additions and 5 deletions
|
|
@ -9,6 +9,7 @@ import modules.ui_test_utils as ui
|
|||
|
||||
|
||||
def sculpt_mode_toolbar():
|
||||
import sys
|
||||
e, t, window = ui.test_window()
|
||||
|
||||
# In the default properties area, set it to the tool tab to force access of all
|
||||
|
|
@ -87,7 +88,12 @@ def sculpt_mode_toolbar():
|
|||
t.assertEqual(window.workspace.tools.from_space_view3d_mode('SCULPT').idname, "builtin.cloth_filter")
|
||||
|
||||
yield e.shift.space()
|
||||
yield e.ctrl.eight()
|
||||
if sys.platform == "darwin":
|
||||
# Assigning a keymap entry to Ctrl on MacOS also assigns it to Command. In most cases, either
|
||||
# keybind is accepted. However, the toolbar specifically responds to Command, not Ctrl
|
||||
yield e.oskey.x()
|
||||
else:
|
||||
yield e.ctrl.x()
|
||||
t.assertEqual(window.workspace.tools.from_space_view3d_mode('SCULPT').idname, "builtin.color_filter")
|
||||
|
||||
yield e.shift.space()
|
||||
|
|
@ -95,19 +101,19 @@ def sculpt_mode_toolbar():
|
|||
t.assertEqual(window.workspace.tools.from_space_view3d_mode('SCULPT').idname, "builtin.face_set_edit")
|
||||
|
||||
yield e.shift.space()
|
||||
yield e.ctrl.nine()
|
||||
yield e.ctrl.eight()
|
||||
t.assertEqual(window.workspace.tools.from_space_view3d_mode('SCULPT').idname, "builtin.mask_by_color")
|
||||
|
||||
yield e.shift.space()
|
||||
yield e.ctrl.zero()
|
||||
yield e.ctrl.nine()
|
||||
t.assertEqual(window.workspace.tools.from_space_view3d_mode('SCULPT').idname, "builtin.move")
|
||||
|
||||
yield e.shift.space()
|
||||
yield e.alt.one()
|
||||
yield e.ctrl.zero()
|
||||
t.assertEqual(window.workspace.tools.from_space_view3d_mode('SCULPT').idname, "builtin.rotate")
|
||||
|
||||
yield e.shift.space()
|
||||
yield e.alt.two()
|
||||
yield e.alt.one()
|
||||
t.assertEqual(window.workspace.tools.from_space_view3d_mode('SCULPT').idname, "builtin.scale")
|
||||
|
||||
yield e.shift.space()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue