1- @IbexaOSS @ IbexaHeadless @IbexaExperience @IbexaCommerce @javascript
1+ @IbexaHeadless @IbexaExperience @IbexaCommerce @javascript
22Feature : Trash management
33 As an administrator
44 In order to manage content on my site
@@ -7,6 +7,7 @@ Feature: Trash management
77 Background :
88 Given I am logged as admin
99
10+ @IbexaOSS
1011 Scenario : Trash can be emptied
1112 Given a "folder" Content item named "TrashTest" exists in root
1213 | name | short_name |
@@ -20,6 +21,7 @@ Feature: Trash management
2021 When I empty the trash
2122 Then trash is empty
2223
24+ @IbexaOSS
2325 Scenario : Content can be moved to trash
2426 Given a "folder" Content item named "TrashTest" exists in root
2527 | name | short_name |
@@ -33,6 +35,7 @@ Feature: Trash management
3335 And I open "Trash" page in admin SiteAccess
3436 And there is a "Folder" "FolderToTrashManually" on Trash list
3537
38+ @IbexaOSS
3639 Scenario : Element in trash can be deleted
3740 Given a "folder" Content item named "TrashTest" exists in root
3841 | name | short_name |
@@ -49,6 +52,7 @@ Feature: Trash management
4952 Then success notification that "Deleted selected item(s) from Trash." appears
5053 And there is no "Folder" "DeleteFromTrash" on Trash list
5154
55+ @IbexaOSS
5256 Scenario : Element in trash can be restored
5357 Given a "folder" Content item named "TrashTest" exists in root
5458 | name | short_name |
@@ -66,6 +70,7 @@ Feature: Trash management
6670 And there is no "Folder" "RestoreFromTrash" on Trash list
6771 And there exists Content view Page for "TrashTest/RestoreFromTrash"
6872
73+ @IbexaOSS
6974 Scenario : Element in trash can be restored under new location
7075 Given a "folder" Content item named "TrashTest" exists in root
7176 | name | short_name |
@@ -82,3 +87,61 @@ Feature: Trash management
8287 Then success notification that "Restored content under Location 'Files'." appears
8388 And there is no "Folder" "RestoreFromTrashNewLocation" on Trash list
8489 And there exists Content view Page for "Media/Files/RestoreFromTrashNewLocation"
90+
91+ @IbexaOSS
92+ Scenario : Element in trash can be found by search
93+ Given a "folder" Content item named "TrashTest" exists in root
94+ | name | short_name |
95+ | TrashTest | TrashTest |
96+ And I create "folder" Content items in "TrashTest" in "eng-GB"
97+ | name | short_name |
98+ | TrashSearch1 | TrashSearch1 |
99+ | TrashSearch2 | TrashSearch2 |
100+ And I send "TrashTest/TrashSearch1" to the Trash
101+ And I send "TrashTest/TrashSearch2" to the Trash
102+ And I open "Trash" page in admin SiteAccess
103+ When I search for a "TrashSearch1" content item in Trash
104+ Then there is a "Folder" "TrashSearch1" on Trash list
105+
106+ @IbexaOSS
107+ Scenario : Element in trash can be found by search and filtered by content type
108+ Given a "folder" Content item named "TrashTest" exists in root
109+ | name | short_name |
110+ | TrashTest | TrashTest |
111+ And I create "article" Content items in "TrashTest" in "eng-GB"
112+ | title | short_title |
113+ | TrashSearch3 | TrashSearch3 |
114+ And I send "TrashTest/TrashSearch3" to the Trash
115+ And I open "Trash" page in admin SiteAccess
116+ When I filter search by "Article" content type
117+ Then there is a "Article" "TrashSearch3" on Trash list
118+
119+ @IbexaOSS
120+ Scenario : Element in trash can be found by search and filtered by section
121+ Given I create "folder" Content items in "Media/Files" in "eng-GB"
122+ | name | short_name |
123+ | TrashSearch4 | TrashSearch4 |
124+ And I send "Media/Files/TrashSearch4" to the Trash
125+ And I open "Trash" page in admin SiteAccess
126+ When I filter search by "Media" section
127+ Then there is a "Folder" "TrashSearch4" on Trash list
128+
129+ Scenario : Element in trash can be found by search and filtered by content item creator
130+ Given I create a user "TrashAdmin" with last name "Admin" in group "Administrator users"
131+ And a "folder" Content item named "TrashTest" exists in root
132+ | name | short_name |
133+ | TrashTest | TrashTest |
134+ And I open Login page in admin SiteAccess
135+ And I log in as "TrashAdmin" with password "Passw0rd-42"
136+ And I'm on Content view Page for TrashTest
137+ And I start creating a new content "Folder"
138+ And I set content fields
139+ | label | value |
140+ | Name | TrashSearch5 |
141+ | Description | TrashSearch5 |
142+ And I perform the "Publish" action
143+ And I'm on Content view Page for root
144+ And I send "TrashTest/TrashSearch5" to the Trash
145+ And I open "Trash" page in admin SiteAccess
146+ When I filter search by "TrashAdmin Admin" content item creator
147+ Then there is a "Folder" "TrashSearch5" on Trash list
0 commit comments