Extract layer rename planning

This commit is contained in:
2026-06-03 10:10:08 +02:00
parent 5d5bb24711
commit 07ed23c2d1
8 changed files with 242 additions and 4 deletions

View File

@@ -318,6 +318,16 @@ add_test(NAME pp_app_core_document_recording_tests COMMAND pp_app_core_document_
set_tests_properties(pp_app_core_document_recording_tests PROPERTIES
LABELS "app;desktop-fast;fuzz")
add_executable(pp_app_core_document_layer_tests
app_core/document_layer_tests.cpp)
target_link_libraries(pp_app_core_document_layer_tests PRIVATE
pp_app_core
pp_test_harness)
add_test(NAME pp_app_core_document_layer_tests COMMAND pp_app_core_document_layer_tests)
set_tests_properties(pp_app_core_document_layer_tests PROPERTIES
LABELS "app;desktop-fast;fuzz")
add_executable(pp_app_core_document_resize_tests
app_core/document_resize_tests.cpp)
target_link_libraries(pp_app_core_document_resize_tests PRIVATE
@@ -690,6 +700,24 @@ if(TARGET pano_cli)
LABELS "app;integration;desktop-fast;fuzz"
WILL_FAIL TRUE)
add_test(NAME pano_cli_plan_layer_rename_smoke
COMMAND pano_cli plan-layer-rename --old-name Base --new-name Paint)
set_tests_properties(pano_cli_plan_layer_rename_smoke PROPERTIES
LABELS "app;integration;desktop-fast"
PASS_REGULAR_EXPRESSION "\"command\":\"plan-layer-rename\".*\"oldName\":\"Base\".*\"newName\":\"Paint\".*\"action\":\"rename-and-record-undo\"")
add_test(NAME pano_cli_plan_layer_rename_no_op_smoke
COMMAND pano_cli plan-layer-rename --old-name Ink --new-name Ink)
set_tests_properties(pano_cli_plan_layer_rename_no_op_smoke PROPERTIES
LABELS "app;integration;desktop-fast"
PASS_REGULAR_EXPRESSION "\"command\":\"plan-layer-rename\".*\"oldName\":\"Ink\".*\"newName\":\"Ink\".*\"action\":\"no-op-same-name\"")
add_test(NAME pano_cli_plan_layer_rename_rejects_empty_name
COMMAND pano_cli plan-layer-rename --old-name Ink --new-name "")
set_tests_properties(pano_cli_plan_layer_rename_rejects_empty_name PROPERTIES
LABELS "app;integration;desktop-fast;fuzz"
WILL_FAIL TRUE)
add_test(NAME pano_cli_plan_share_file_unsaved_smoke
COMMAND pano_cli plan-share-file)
set_tests_properties(pano_cli_plan_share_file_unsaved_smoke PROPERTIES