forked from ezsystems/PlatformUIBundle
/
RemoveContent.feature
53 lines (47 loc) · 1.81 KB
/
RemoveContent.feature
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
Feature: Remove content
In order to remove objects
As an Editor user
I need to be able to remove an object that I am viewing
Background:
Given I am logged in as an 'Administrator' in PlatformUI
##
# Validate dialogs
##
@javascript
Scenario: Verify the existence of the removal confirmation request
Given a "News Flash" article exists
And I am on "News Flash" full view
When I click on the action bar button "Send to Trash"
Then I am asked to confirm if I am sure that I want to send the content to trash
And I see a confirmation button
And I see a cancel button
##
# Delete objects
##
@javascript
Scenario: Remove one object and confirm the removal
Given a "News Flash" article exists
When I remove "News Flash"
And I confirm the removal
Then I am notified that '"News Flash" sent to Trash'
And the content item "News Flash" was removed
@javascript
Scenario: Remove one object and do not confirm the removal
Given a "News Flash" article exists
When I remove "News Flash"
And I cancel the removal
Then I am not notified that '"News Flash" sent to Trash'
And "News Flash" content item exists
@javascript
Scenario: Delete one object that has children objects
Given a "News/News child" article exists
When I remove "News"
And I confirm the removal
Then the content item "News" was removed
@javascript
Scenario: Removing one object should redirect to it's parent location view
Given a "News/News child" article exists
When I remove "News child"
And I confirm the removal
Then I am on the "News" location view
And the content item "News/News child" was removed