@@ -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 "/"
@@ -37,3 +37,20 @@ Feature: Remove a node
3737 Then the command should not fail
3838 And I save the session
3939 And there should not exist a node at "/tests_general_base/daniel"
40+
41+ Scenario : Delete node by UUID
42+ Given the current node is "/"
43+ And I execute the "node:remove 88888888-1abf-4708-bfcc-e49511754b40" command
44+ Then the command should not fail
45+
46+ Scenario : Delete referenced node
47+ Given I execute the "node:remove /cms/articles/article1" command
48+ Then the command should fail
49+ And I should see the following:
50+ """
51+ The node "/cms/articles/article1" is referenced by the following properties
52+ """
53+
54+ Scenario : Delete weak referenced node
55+ Given I execute the "node:remove /cms/articles/article3" command
56+ Then the command should not fail
0 commit comments