blender/tests/python/ui_simulate
Campbell Barton fa38b8e7d0 Fix #163842: File-browser dir stuck editing if it contained / on WIN32
On WIN32: Tab-completing a path with forward slashes in the file
browser's directory field left the field stuck editing.
The file-list stores the path with back-slashes, so the typed path never
matched it, the button re-activated itself every time it was applied.

The error is caused by the commit that introduced the functionality [0].

Resolve by reverting & replacing the functionality with a generic button
flag: `BUT_TEXTEDIT_AUTOCOMPLETE_KEEP_ACTIVE`.
When the auto-complete is a full match, the value is applied and the
button becomes active again with the cursor at the end,
the same way Tab moves between text fields.

Any text button with auto-complete can now use this,
instead of each buttons callback having to manage it's edit-state.

Also remove a workaround from the "test_blend_autoexec" UI tests which
needed to press "Return" twice to accept a directory
as the first press triggered auto-complete re-activation.

Ref !163842

[0]: 3e680e35a1
2026-10-01 20:13:34 +10:00
..
modules UI: Add tests for operator poll 2026-08-26 07:07:19 +02:00
run.py
run_blender_setup.py Tests: Blocklist Cycles interactive render + AMD + Windows 2026-06-03 15:51:49 +02:00
test_blend_autoexec.py Fix #163842: File-browser dir stuck editing if it contained / on WIN32 2026-10-01 20:13:34 +10:00
test_bpy_types.py Fix #157477, #117176: Avoid crashes with popups referencing unregistered python classes 2026-07-01 16:30:49 +02:00
test_button_input.py UI: WM: Add python API for activating RNA buttons 2026-07-28 21:35:33 +02:00
test_drag_interactions.py UI: Add tests for drag in editors 2026-08-20 20:54:58 +02:00
test_drop_interactions.py UI: Add drop tests (invoked when dropped onto editor regions) 2026-09-01 14:09:11 +02:00
test_editor_types.py UI: Add UI tests for opening editors 2026-08-14 11:04:50 +02:00
test_fullscreen.py Refactor: Tests: Move utilities to common module 2026-01-23 14:45:03 +01:00
test_info_reports.py UI: Add UI tests for the Reports 2026-09-16 23:15:32 +02:00
test_menu_search_and_exec.py UI: Add tests for menu search and item execution 2026-08-07 21:19:27 +02:00
test_modifiers_constraints_draw.py UI: Add test for drawing all Modifiers and Constraints panels 2026-09-17 17:56:46 +02:00
test_operator_poll.py UI: Add tests for operator poll 2026-08-26 07:07:19 +02:00
test_pie_menus.py Cleanup: use ASCII characters for code-comments 2026-07-23 15:52:00 +10:00
test_preferences_draw_all.py UI: Add test for preferences section drawing 2026-09-01 18:22:24 +02:00
test_quick_effects.py Tests: Add UI tests for quick effects 2026-04-06 15:24:45 +02:00
test_render.py Fix #161775: Crash in bpy.app.handlers.render_stats in animation render 2026-07-22 21:06:17 +02:00
test_sculpt.py Fix: Sculpt UI primitive_tool_add test broken after recent change 2026-08-06 21:44:55 +02:00
test_search_in_editors.py Refactor: UI: Activate area filters from hidden regions 2026-09-03 16:07:51 +02:00
test_sequencer.py Fix #161987: Avoid compositor modifier UI crash with one input 2026-08-04 21:18:56 +02:00
test_tool_activation.py UI: Add workspace tool activation regression tests 2026-08-04 18:24:30 +02:00
test_tools.py Fix: Sculpt toolbar test broken after Quad sphere addition 2026-09-03 20:46:01 +02:00
test_transform.py Tests: Add UI tests for snapping to the edited mesh 2026-09-16 20:39:12 +02:00
test_undo.py Tests: Convert texture paint test to general "Undo History" test 2026-09-30 17:43:50 +02:00
test_workspace.py Refactor: Tests: Move utilities to common module 2026-01-23 14:45:03 +01:00