feat(automation): pure locator (id/path/predicate) with unit tests

This commit is contained in:
SoftFever
2026-06-03 01:38:13 +08:00
parent 02140d2a1e
commit ddd1967bff
4 changed files with 193 additions and 0 deletions
+2
View File
@@ -3,7 +3,9 @@ get_filename_component(_TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
add_executable(${_TEST_NAME}_tests
automation_tests.cpp
test_serializer.cpp
test_locator.cpp
${CMAKE_SOURCE_DIR}/src/slic3r/GUI/Automation/WidgetSerializer.cpp
${CMAKE_SOURCE_DIR}/src/slic3r/GUI/Automation/Locator.cpp
)
target_link_libraries(${_TEST_NAME}_tests test_common Catch2::Catch2WithMain nlohmann_json)
# The nlohmann_json INTERFACE target only exposes deps_src/nlohmann on the include