Skip to content

Commit

Permalink
WIP: Modify last test introduced for neos#5150
Browse files Browse the repository at this point in the history
  • Loading branch information
grebaldi committed Jul 8, 2024
1 parent 972b4c0 commit 05cedb8
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Feature: Workspace discarding - basic functionality
| newContentStreamId | "user-cs-identifier" |
| workspaceOwner | "owner-identifier" |

Scenario: Discarding a full workspace works
Scenario: Discarding a full workspace resets property changes
When the command SetNodeProperties is executed with payload:
| Key | Value |
| workspaceName | "user-test" |
Expand All @@ -72,6 +72,25 @@ Feature: Workspace discarding - basic functionality
| Key | Value |
| text | "Original" |

Scenario: Discarding a full workspace removes unpublished created nodes
When I am in workspace "user-test" and dimension space point {}
And the command CreateNodeAggregateWithNode is executed with payload:
| Key | Value |
| nodeAggregateId | "nodo-baggins" |
| nodeTypeName | "Neos.ContentRepository.Testing:Content" |
| parentNodeAggregateId | "lady-eleonode-rootford" |
| initialPropertyValues | {"text": "Discard the ring into the fire!"} |
| nodeName | "to-be-discarded" |
Then I expect node aggregate identifier "nodo-baggins" to lead to node user-cs-identifier;nodo-baggins;{}

When the command DiscardWorkspace is executed with payload:
| Key | Value |
| workspaceName | "user-test" |
| newContentStreamId | "user-cs-identifier-modified" |

When I am in workspace "user-test" and dimension space point {}
Then I expect node aggregate identifier "nodo-baggins" to lead to no node

Scenario: Discarding a full workspace shows the most up-to-date base workspace when the base WS was modified in the meantime
When the command SetNodeProperties is executed with payload:
| Key | Value |
Expand Down

0 comments on commit 05cedb8

Please sign in to comment.