-
Notifications
You must be signed in to change notification settings - Fork 74
/
manage_events.feature
54 lines (47 loc) · 1.67 KB
/
manage_events.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
54
@events
Feature: Events
In order to have events on my website
As an administrator
I want to manage events
Background:
Given I am a logged in refinery user
And I have no events
@events-list @list
Scenario: Events List
Given I have events titled UniqueTitleOne, UniqueTitleTwo
When I go to the list of events
# And show me the page
Then I should see "UniqueTitleOne"
And I should see "UniqueTitleTwo"
@events-valid @valid
Scenario: Create Valid Event
When I go to the list of events
And I follow "Add New Event"
And I fill in "Title" with "This is a test of the first string field"
And I press "Save"
Then I should see "'This is a test of the first string field' was successfully added."
And I should have 1 event
@events-invalid @invalid
Scenario: Create Invalid Event (without title)
When I go to the list of events
And I follow "Add New Event"
And I press "Save"
Then I should see "Title can't be blank"
And I should have 0 events
@events-edit @edit
Scenario: Edit Existing Event
Given I have events titled "A title"
When I go to the list of events
And I follow "Edit this event" within ".actions"
Then I fill in "Title" with "A different title"
And I press "Save"
Then I should see "'A different title' was successfully updated."
And I should be on the list of events
And I should not see "A title"
@events-delete @delete
Scenario: Delete Event
Given I only have events titled UniqueTitleOne
When I go to the list of events
And I follow "Remove this event forever"
Then I should see "'UniqueTitleOne' was successfully removed."
And I should have 0 events