|
| 1 | +@annoying |
1 | 2 | Feature: Move a node in the current session |
2 | 3 | In order to move a single node in the current workspace |
3 | 4 | As a user logged into the shell |
4 | 5 | I want to move a node from one path to another |
5 | 6 |
|
6 | 7 | Background: |
7 | 8 | Given that I am logged in as "testuser" |
8 | | - And the "session_data.xml" fixtures are loaded |
| 9 | + And the "cms.xml" fixtures are loaded |
9 | 10 |
|
10 | 11 | Scenario: Move node |
11 | | - Given I execute the "node:move /tests_general_base/index.txt /foobar" command |
| 12 | + Given I execute the "node:move /cms/test /foobar" command |
12 | 13 | Then the command should not fail |
13 | 14 | And I execute the "session:save" command |
14 | 15 | And there should exist a node at "/foobar" |
15 | 16 | And there should not exist a node at "/tests_general_base/index.txt" |
16 | 17 |
|
17 | 18 | Scenario: Move node relative paths |
18 | | - Given the current node is "/tests_general_base/index.txt" |
| 19 | + Given the current node is "/cms/test" |
19 | 20 | And I execute the "node:move . /barfoo" command |
20 | 21 | Then the command should not fail |
21 | 22 | And I execute the "session:save" command |
22 | 23 | And there should exist a node at "/barfoo" |
23 | 24 | And there should not exist a node at "/tests_general_base/index.txt" |
24 | 25 |
|
25 | 26 | Scenario: Move onto existing target |
26 | | - Given the current node is "/tests_general_base/index.txt" |
27 | | - And I execute the "node:move . /tests_general_base/daniel" command |
| 27 | + Given the current node is "/cms/test" |
| 28 | + And I execute the "node:move . /cms/products" command |
28 | 29 | Then the command should not fail |
29 | 30 | And I execute the "session:save" command |
30 | | - And there should exist a node at "/tests_general_base/daniel/index.txt" |
| 31 | + And there should exist a node at "/cms/products/test" |
0 commit comments