To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorWe have campaigns
In order to add ideas
We have to have campaigns
So that users can add their ideas
- Background Some users and campaigns exist
-
- Given
- a set up with users campaigns and existing ideas
- Scenarios
-
- Administrator can manage campaigns
- Administrator can add a campaign
- An ordinary user should not be able to manage campaigns
- When an ordinary user views a campaign they should not be able to edit it
- An ordinary user can add an idea to a campaign
- I want to see the list of ideas for a campaign
- An ordinary user can list the ideas for a campaign
- Administrator can manage campaigns
-
- And
- I am logged in as an administrator
- When
- I click on 'Manage Campaigns'
- Then
- I should see a list of campaigns
- And
- I should see a link to 'New Campaign'
- Administrator can add a campaign
-
- And
- I am logged in as an administrator
- When
- I click on 'Manage Campaigns'
- And
- I click on 'New Campaign'
- And
- I fill in "Title" with "a new campaign"
- And
- I fill in "Description" with "some descriptive text"
- And
- I click on 'Save'
- Then
- I should see 'Campaign was successfully created'
- An ordinary user should not be able to manage campaigns
-
- Given
- I am logged in as a user
- Then
- I should not see 'Manage Campaigns'
- When an ordinary user views a campaign they should not be able to edit it
-
- Given
- I am logged in as a user
- And
- I go to the home page
- And
- I click on the first campaign
- Then
- I should see the first campaign text
- And
- I should not see 'Edit'
- And
- I should not see 'Back'
- An ordinary user can add an idea to a campaign
-
- Given
- I am logged in as a user
- And
- I go to the home page
- And
- I click on the first campaign
- And
- I click on 'Submit an idea'
- And
- I fill in "Headline" with "My first idea"
- And
- I fill in "Description" with "Lorem Ipsum"
- And
- I press "Publish"
- Then
- I should see 'Idea was successfully created'
- When
- I click on 'My Ideas'
- Then
- I should see 'My first idea'
- And
- I should see 'Lorem Ipsum'
- I want to see the list of ideas for a campaign
-
- Given
- I am logged in as a user
- And
- wait for 10 seconds
- And
- I click on 'Campaigns'
- And
- I click on the first campaign
- And
- I click on 'Ideas'
- Then
- I should see a list of ideas
- An ordinary user can list the ideas for a campaign
-
- Given
- I am logged in as a user
- And
- I go to the home page
- And
- I click on the first campaign
- And
- I click on 'See all ideas'
- Then
- show me the page
- Then
- I should be on the campaign ideas page
- And
- I should see a list of ideas
Last published over 5 years ago by JohnSmall.