From 4b4a669ce0a65b49597c0169d6e1a75f86644b84 Mon Sep 17 00:00:00 2001 From: Martin Ficzel Date: Sun, 22 Dec 2024 13:58:02 +0100 Subject: [PATCH] TASK: Add site nodeName to edge-testcases to avoid relying on invalid behavior The projection detects site nodes that should have an empty path by verifying that the parent is a root node and they have a nodeName. --- .../Features/FrontendRouting/NodeCreationEdgeCases.feature | 1 + .../Features/FrontendRouting/NodeVariationEdgeCases.feature | 1 + 2 files changed, 2 insertions(+) diff --git a/Neos.Neos/Tests/Behavior/Features/FrontendRouting/NodeCreationEdgeCases.feature b/Neos.Neos/Tests/Behavior/Features/FrontendRouting/NodeCreationEdgeCases.feature index 747782161d1..85123832651 100644 --- a/Neos.Neos/Tests/Behavior/Features/FrontendRouting/NodeCreationEdgeCases.feature +++ b/Neos.Neos/Tests/Behavior/Features/FrontendRouting/NodeCreationEdgeCases.feature @@ -36,6 +36,7 @@ Feature: Test cases for node creation edge cases | nodeTypeName | "Neos.Neos:Site" | | parentNodeAggregateId | "lady-eleonode-rootford" | | originDimensionSpacePoint | {"example":"source"} | + | nodeName | "site" | And the following CreateNodeAggregateWithNode commands are executed: | nodeAggregateId | nodeName | parentNodeAggregateId | succeedingSiblingNodeAggregateId | nodeTypeName | initialPropertyValues | # Let's prepare some siblings to check orderings. Also, everything gets better with siblings. diff --git a/Neos.Neos/Tests/Behavior/Features/FrontendRouting/NodeVariationEdgeCases.feature b/Neos.Neos/Tests/Behavior/Features/FrontendRouting/NodeVariationEdgeCases.feature index 7e4d76f0ca2..75c2d9b90f4 100644 --- a/Neos.Neos/Tests/Behavior/Features/FrontendRouting/NodeVariationEdgeCases.feature +++ b/Neos.Neos/Tests/Behavior/Features/FrontendRouting/NodeVariationEdgeCases.feature @@ -36,6 +36,7 @@ Feature: Test cases for node variation edge cases | nodeTypeName | "Neos.Neos:Site" | | parentNodeAggregateId | "lady-eleonode-rootford" | | originDimensionSpacePoint | {"example":"source"} | + | nodeName | "site" | And the command CreateNodeVariant is executed with payload: | Key | Value | | nodeAggregateId | "shernode-homes" |