Logo: Relish

  1. Sign in

Project: Ideas-zone

We have campaigns

  • @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
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'
  • @complete
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'
  • @complete
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'
  • @complete
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'
  • @javascript
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.