@@ -5,23 +5,23 @@ Feature: Remove a node
55
66 Background :
77 Given that I am logged in as "testuser"
8- And the "session_data .xml" fixtures are loaded
8+ And the "cms .xml" fixtures are loaded
99
1010 Scenario : Remove the current node
11- Given the current node is "/tests_general_base "
11+ Given the current node is "/cms/test "
1212 And I execute the "node:remove ." command
1313 Then the command should not fail
1414 And I save the session
15- And there should not exist a node at "/tests_general_base "
16- And the current node should be "/"
15+ And there should not exist a node at "/cms/test "
16+ And the current node should be "/cms "
1717
1818 Scenario : Remove a non-current node
19- Given the current node is "/tests_general_base "
20- And I execute the "node:remove daniel" command
19+ Given the current node is "/cms "
20+ And I execute the "node:remove /cms/users/ daniel" command
2121 Then the command should not fail
2222 And I save the session
23- And there should not exist a node at "/tests_general_base /daniel"
24- And the current node should be "/tests_general_base "
23+ And there should not exist a node at "/cms/users /daniel"
24+ And the current node should be "/cms "
2525
2626 Scenario : Delete root node
2727 Given the current node is "/"
@@ -32,3 +32,15 @@ Feature: Remove a node
3232 You cannot delete the root node
3333 """
3434
35+ Scenario : Delete node by UUID
36+ Given the current node is "/"
37+ And I execute the "node:remove 88888888-1abf-4708-bfcc-e49511754b40" command
38+ Then the command should not fail
39+
40+ Scenario : Delete referenced node
41+ Given I execute the "node:remove /cms/articles/article1" command
42+ Then the command should fail
43+ And I should see the following:
44+ """
45+ The node "/cms/articles/article1" is referenced by the following properties
46+ """
0 commit comments