diff --git a/Neos.ContentRepository.BehavioralTests/Tests/Behavior/Features/ContentStreamForking/ForkContentStreamWithDisabledNodesWithoutDimensions.feature b/Neos.ContentRepository.BehavioralTests/Tests/Behavior/Features/ContentStreamForking/ForkContentStreamWithDisabledNodesWithoutDimensions.feature index e3dd0b80089..4d54cc643a1 100644 --- a/Neos.ContentRepository.BehavioralTests/Tests/Behavior/Features/ContentStreamForking/ForkContentStreamWithDisabledNodesWithoutDimensions.feature +++ b/Neos.ContentRepository.BehavioralTests/Tests/Behavior/Features/ContentStreamForking/ForkContentStreamWithDisabledNodesWithoutDimensions.feature @@ -56,15 +56,17 @@ Feature: On forking a content stream, hidden nodes should be correctly copied as | nodeVariantSelectionStrategy | "allVariants" | Scenario: on ForkContentStream, the disabled nodes in the target content stream should still be invisible. - When the command ForkContentStream is executed with payload: - | Key | Value | - | sourceContentStreamId | "cs-identifier" | - | contentStreamId | "user-cs-identifier" | - + # Uses ForkContentStream implicitly + When the command CreateWorkspace is executed with payload: + | Key | Value | + | baseWorkspaceName | "live" | + | workspaceName | "user-test" | + | newContentStreamId | "user-cs-identifier" | # node aggregate occupation and coverage is not relevant without dimensions and thus not tested - When I am in content stream "user-cs-identifier" and dimension space point {} + When I am in workspace "user-test" and dimension space point {} + Then I expect the workspace to point to content stream "user-cs-identifier" And VisibilityConstraints are set to "withoutRestrictions" Then I expect node aggregate identifier "lady-eleonode-rootford" to lead to node user-cs-identifier;lady-eleonode-rootford;{} And I expect this node to have the following child nodes: diff --git a/Neos.ContentRepository.BehavioralTests/Tests/Behavior/Features/ContentStreamForking/ForkContentStreamWithoutDimensions.feature b/Neos.ContentRepository.BehavioralTests/Tests/Behavior/Features/ContentStreamForking/ForkContentStreamWithoutDimensions.feature index ab8748cb07d..814f529c9c4 100644 --- a/Neos.ContentRepository.BehavioralTests/Tests/Behavior/Features/ContentStreamForking/ForkContentStreamWithoutDimensions.feature +++ b/Neos.ContentRepository.BehavioralTests/Tests/Behavior/Features/ContentStreamForking/ForkContentStreamWithoutDimensions.feature @@ -50,19 +50,26 @@ Feature: ForkContentStream Without Dimensions | propertiesToUnset | {} | Scenario: Ensure that the node is available in the forked content stream - When the command "ForkContentStream" is executed with payload: - | Key | Value | - | contentStreamId | "user-cs-identifier" | - | sourceContentStreamId | "cs-identifier" | - And I am in content stream "user-cs-identifier" and dimension space point {} + # Uses ForkContentStream implicitly + When the command CreateWorkspace is executed with payload: + | Key | Value | + | baseWorkspaceName | "live" | + | workspaceName | "user-test" | + | newContentStreamId | "user-cs-identifier" | + + When I am in workspace "user-test" and dimension space point {} + Then I expect the workspace to point to content stream "user-cs-identifier" Then I expect node aggregate identifier "nody-mc-nodeface" to lead to node user-cs-identifier;nody-mc-nodeface;{} Scenario: When a change is applied to the forked content stream AFTER the fork, it is not visible in the live content stream. - When the command "ForkContentStream" is executed with payload: - | Key | Value | - | contentStreamId | "user-cs-identifier" | - | sourceContentStreamId | "cs-identifier" | + # Uses ForkContentStream implicitly + When the command CreateWorkspace is executed with payload: + | Key | Value | + | baseWorkspaceName | "live" | + | workspaceName | "user-test" | + | newContentStreamId | "user-cs-identifier" | + And the event NodePropertiesWereSet was published with payload: | Key | Value | | workspaceName | "user" | @@ -73,15 +80,17 @@ Feature: ForkContentStream Without Dimensions | propertyValues | {"text": {"value": "modified value", "type": "string"}} | | propertiesToUnset | {} | - # live - When I am in content stream "cs-identifier" and dimension space point {} + # live + When I am in workspace "live" and dimension space point {} + Then I expect the workspace to point to content stream "cs-identifier" Then I expect node aggregate identifier "nody-mc-nodeface" to lead to node cs-identifier;nody-mc-nodeface;{} And I expect this node to have the following properties: | Key | Value | | text | "original value" | # forked content stream - When I am in content stream "user-cs-identifier" and dimension space point {} + When I am in workspace "user-test" and dimension space point {} + Then I expect the workspace to point to content stream "user-cs-identifier" Then I expect node aggregate identifier "nody-mc-nodeface" to lead to node user-cs-identifier;nody-mc-nodeface;{} And I expect this node to have the following properties: | Key | Value | @@ -89,10 +98,12 @@ Feature: ForkContentStream Without Dimensions # this is a "reverse" scenario of the scenario above. Scenario: When a change is applied on the live content stream AFTER the fork, it is NOT visible in the forked content stream. - When the command "ForkContentStream" is executed with payload: - | Key | Value | - | contentStreamId | "user-cs-identifier" | - | sourceContentStreamId | "cs-identifier" | + # Uses ForkContentStream implicitly + When the command CreateWorkspace is executed with payload: + | Key | Value | + | baseWorkspaceName | "live" | + | workspaceName | "user-test" | + | newContentStreamId | "user-cs-identifier" | And the event NodePropertiesWereSet was published with payload: | Key | Value | | workspaceName | "live" | @@ -104,14 +115,16 @@ Feature: ForkContentStream Without Dimensions | propertiesToUnset | {} | # live - When I am in content stream "cs-identifier" and dimension space point {} + When I am in workspace "live" and dimension space point {} + Then I expect the workspace to point to content stream "cs-identifier" Then I expect node aggregate identifier "nody-mc-nodeface" to lead to node cs-identifier;nody-mc-nodeface;{} And I expect this node to have the following properties: | Key | Value | | text | "modified value" | # forked content stream - When I am in content stream "user-cs-identifier" and dimension space point {} + When I am in workspace "user-test" and dimension space point {} + Then I expect the workspace to point to content stream "user-cs-identifier" Then I expect node aggregate identifier "nody-mc-nodeface" to lead to node user-cs-identifier;nody-mc-nodeface;{} And I expect this node to have the following properties: | Key | Value |