Skip to content

Instantly share code, notes, and snippets.

@mneuhaus
Created April 25, 2014 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mneuhaus/11288628 to your computer and use it in GitHub Desktop.
Save mneuhaus/11288628 to your computer and use it in GitHub Desktop.
@fixtures
Scenario: Update existing live node variant in user workspace, publish to live
Given I have the following nodes:
| Identifier | Path | Node Type | Properties | Workspace | Locale |
| fd5ba6e1-4313-b145-1004-dad2f1173a35 | /sites/neosdemotypo3/mainpage | TYPO3.Neos.NodeTypes:Page | {"title": "Mainpage"} | live | mul_ZZ |
| fd5ba6e1-4313-b145-1004-dad2f1173a35 | /sites/neosdemotypo3/mainpage | TYPO3.Neos.NodeTypes:Page | {"title": "Hauptseite"} | live | de_DE |
| 88745891-222b-e9c9-6144-4b3a5d80d482 | /sites/neosdemotypo3/mainpage/subpage | TYPO3.Neos.NodeTypes:Page | {"title": "Subpage"} | live | mul_ZZ |
| 88745891-222b-e9c9-6144-4b3a5d80d482 | /sites/neosdemotypo3/mainpage/subpage | TYPO3.Neos.NodeTypes:Page | {"title": "Unterseite"} | live | de_DE |
And I get a node by path "/sites/neosdemotypo3/mainpage" with the following context:
| Locales | Workspace |
| de_DE, mul_ZZ | user-demo |
And I set the node name to "hauptseite"
And I publish the workspace "user-demo"
Then the node version should be 2
When I get a node by path "/sites/neosdemotypo3/hauptseite/subpage" with the following context:
| Locales | Workspace |
| de_DE, mul_ZZ | user-demo |
Then the node version should be 3
And I set the node name to "unterseite"
And I publish the workspace "user-demo"
When I get a node by path "/sites/neosdemotypo3/hauptseite/unterseite" with the following context:
| Locales | Workspace |
| de_DE, mul_ZZ | user-demo |
Then the node version should be 4
And I set the node property "title" to "Unterseite Test"
And I publish the workspace "user-demo"
When I get a node by identifier "88745891-222b-e9c9-6144-4b3a5d80d482" with the following context:
| Locales | Workspace |
| de_DE, mul_ZZ | live |
And The node property "title" should be "Unterseite Test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment