-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathContentManagement.feature
More file actions
170 lines (158 loc) · 9.19 KB
/
Copy pathContentManagement.feature
File metadata and controls
170 lines (158 loc) · 9.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
@javascript
Feature: Content items creation
As an administrator
In order to manage content to my site
I want to create, edit, copy and move content items.
Background:
Given I am logged as admin
@IbexaOSS @IbexaHeadless @IbexaExperience @IbexaCommerce
Scenario: Content moving can be cancelled
Given a "folder" Content item named "ContentManagement" exists in root
| name | short_name |
| ContentManagement | ContentManagement |
And I create "folder" Content items
| name | short_name | parentPath | language |
| FolderToCancelMove | FolderToCancelMove | ContentManagement | eng-GB |
And I'm on Content view Page for "ContentManagement/FolderToCancelMove"
When I perform the "Move" action
And I select content "Media" through UDW
And I close the UDW window
Then I should be on Content view Page for "ContentManagement/FolderToCancelMove"
@IbexaOSS @IbexaHeadless @IbexaExperience @IbexaCommerce
Scenario: Content can be moved
Given a "folder" Content item named "ContentManagement" exists in root
| name | short_name |
| ContentManagement | ContentManagement |
And I create "folder" Content items
| name | short_name | parentPath | language |
| FolderToMove | FolderToMove | ContentManagement | eng-GB |
And I'm on Content view Page for "ContentManagement/FolderToMove"
When I perform the "Move" action
And I select content "Media/Files" through UDW
And I confirm the selection in UDW
Then success notification that "'FolderToMove' moved to 'Files'" appears
And I should be on Content view Page for "Media/Files/FolderToMove"
And I'm on Content view Page for "ContentManagement"
And there's no "FolderToMove" "Folder" on Subitems list
@IbexaOSS @IbexaHeadless @IbexaExperience @IbexaCommerce
Scenario: Content copying can be cancelled
Given a "folder" Content item named "ContentManagement" exists in root
| name | short_name |
| ContentManagement | ContentManagement |
And I create "folder" Content items
| name | short_name | parentPath | language |
| FolderToCopyCancel | FolderToCopyCancel | ContentManagement | eng-GB |
And I'm on Content view Page for "ContentManagement/FolderToCopyCancel"
When I perform the "Copy" action
And I select content "Media" through UDW
And I close the UDW window
Then I should be on Content view Page for "ContentManagement/FolderToCopyCancel"
@IbexaOSS @IbexaHeadless @IbexaExperience @IbexaCommerce
Scenario: Content can be copied
Given a "folder" Content item named "ContentManagement" exists in root
| name | short_name |
| ContentManagement | ContentManagement |
And I create "folder" Content items
| name | short_name | parentPath | language |
| FolderToCopy | FolderToCopy | ContentManagement | eng-GB |
And I'm on Content view Page for "ContentManagement/FolderToCopy"
When I perform the "Copy" action
And I select content "Media/Files" through UDW
And I confirm the selection in UDW
Then success notification that "'FolderToCopy' copied to 'Files'" appears
And I should be on Content view Page for "Media/Files/FolderToCopy"
And I'm on Content view Page for "ContentManagement"
And there's a "FolderToCopy" "Folder" on Subitems list
@IbexaOSS @IbexaHeadless @IbexaExperience @IbexaCommerce
Scenario: Subtree copying can be cancelled
Given a "folder" Content item named "ContentManagement" exists in root
| name | short_name |
| ContentManagement | ContentManagement |
And I create "folder" Content items
| name | short_name | parentPath | language |
| FolderToSubtreeCopyCancel | FolderToSubtreeCopyCancel | ContentManagement | eng-GB |
And I'm on Content view Page for "ContentManagement/FolderToSubtreeCopyCancel"
When I perform the "Copy Subtree" action
And I select content "Media" through UDW
And I close the UDW window
Then I should be on Content view Page for "ContentManagement/FolderToSubtreeCopyCancel"
@IbexaOSS @IbexaHeadless @IbexaExperience @IbexaCommerce
Scenario: Subtree can be copied
Given a "folder" Content item named "ContentManagement" exists in root
| name | short_name |
| ContentManagement | ContentManagement |
And I create "folder" Content items
| name | short_name | parentPath | language |
| FolderToSubtreeCopy | FolderToSubtreeCopy | ContentManagement | eng-GB |
And I'm on Content view Page for "ContentManagement/FolderToSubtreeCopy"
When I perform the "Copy Subtree" action
And I select content "Media" through UDW
And I confirm the selection in UDW
Then success notification that "Subtree 'FolderToSubtreeCopy' copied to Location 'Media'" appears
And I should be on Content view Page for "Media/FolderToSubtreeCopy"
And I'm on Content view Page for "ContentManagement"
And there's a "FolderToSubtreeCopy" "Folder" on Subitems list
@IbexaOSS
Scenario: Content item can be hidden
Given a "folder" Content item named "ContentManagement" exists in root
| name | short_name |
| ContentManagement | ContentManagement |
And a "article" Content item named "TestArticleToHide" exists in "ContentManagement"
| title | short_title | intro |
| TestArticleToHide | TestArticleToHide | TestArticleIntro |
And I'm on Content view Page for "ContentManagement/TestArticleToHide"
When I perform the "Hide" action
And I'm on Content view Page for "ContentManagement/TestArticleToHide"
Then I should see the alert "This Content item or its Location is hidden." appear
@IbexaHeadless @IbexaExperience @IbexaCommerce
Scenario: Content item can be hidden
Given a "folder" Content item named "ContentManagement" exists in root
| name | short_name |
| ContentManagement | ContentManagement |
And a "article" Content item named "TestArticleToHide" exists in "ContentManagement"
| title | short_title | intro |
| TestArticleToHide | TestArticleToHide | TestArticleIntro |
And I'm on Content view Page for "ContentManagement/TestArticleToHide"
When I perform the "Hide" action
And I perform the "Confirm" action
And I'm on Content view Page for "ContentManagement/TestArticleToHide"
Then I should see the alert "This Content item or its Location is hidden." appear
@IbexaOSS @IbexaHeadless @IbexaExperience @IbexaCommerce
Scenario: Hidden content item can be revealed
Given I'm on Content view Page for "ContentManagement/TestArticleToHide"
When I perform the "Reveal" action
And I should be on Content view Page for "ContentManagement/TestArticleToHide"
Then success notification that "Content item 'TestArticleToHide' revealed." appears
@IbexaHeadless @IbexaExperience @IbexaCommerce
Scenario: Content can be hidden later
Given a "folder" Content item named "ContentManagement" exists in root
| name | short_name |
| ContentManagement | ContentManagement |
And a "article" Content item named "TestArticleToHideLater" exists in "ContentManagement"
| title | short_title | intro |
| TestArticleToHideLater | TestArticleToHideLater | TestArticleIntro |
And I'm on Content view Page for "ContentManagement/TestArticleToHideLater"
And I perform the "Hide" action
And I select hide "later" for field options
And I perform the "Confirm" action
And I should be on Content view Page for "ContentManagement/TestArticleToHideLater"
And I should see the alert contains "This Content item will be hidden and won't be publicly available after" appear
When I run the scheduled jobs
And I clear the behat cache directory
Then I should see the alert "This Content item or its Location is hidden." appear
@IbexaHeadless @IbexaExperience @IbexaCommerce
Scenario: Content hide later can be cancelled
Given a "folder" Content item named "ContentManagement" exists in root
| name | short_name |
| ContentManagement | ContentManagement |
And a "article" Content item named "TestArticleToHideLater" exists in "ContentManagement"
| title | short_title | intro |
| TestArticleToCancelHideLater | TestArticleToCancelHideLater | TestArticleIntro |
And I'm on Content view Page for "ContentManagement/TestArticleToCancelHideLater"
And I perform the "Hide" action
And I select hide "later" for field options
And I perform the "Confirm" action
And I should be on Content view Page for "ContentManagement/TestArticleToCancelHideLater"
And I should see the alert contains "This Content item will be hidden and won't be publicly available after" appear
When I cancel scheduled hiding of the content item
Then I should see the alert "Canceled scheduled hiding of Content item 'TestArticleToCancelHideLater'." appear