aboutsummaryrefslogtreecommitdiff
blob: 23976f075e5a99d98b8e751b2bab712a099c6515 (plain)
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
Feature: Propose Agenda Items
  As a developer
  I want to be able to propose agenda items
  so that council makes decisions on them

  Scenario: Propose Agenda items
    Given I am logged in as a developer
		When I go to the home page
		And I follow "Agenda Items"
		And I follow "New Agenda Item"
		And I fill in "Name" with "agenda_item_test_name"
		And I press "Create Agenda Item"
		Then I should see "created successfully"

  Scenario: Approve Agenda items
    Given I am logged in as a council member
    When I visit agenda item "agenda_item_one"
		And I press "Approve"
    Then I should see "approved"

  Scenario: Reject Agenda item
    Given I am logged in as a council member
		When I visit agenda item "agenda_item_two"
		And I press "Reject"
		And I fill in "Reason of Rejection" with "not allowed"
		And I press "Reject"
		Then I should see "not allowed"

		When I visit agenda item "agenda_item_two"
		Then I should see "not allowed"