Logo: Relish

  1. Sign in

Project: Deciderapp

Propose

In order to make a proposal
As a person who has a proposal that I would like to have others vote on
I want to be able to create a proposal

Scenarios
See Proposal Page

Given

When
I go to the proposal page
Then
I should see "Make a proposal"
And
I should see the correct elements of the proposal page
Enter a Proposal and get a URL

Given

When
I go to the proposal page
And
enter the fields of the proposal
And
submit the proposal
Then
I should see "Your proposal was successfully created"
And
I should see "Url for voting:"
Proposal without title gives an error

Given

When
I go to the proposal page
And
enter the fields of the proposal
And
do not enter the title
And
submit the proposal
Then
I should see "Title can't be blank"
Proposal without details gives an error

Given

When
I go to the proposal page
And
enter the fields of the proposal
And
do not enter details
And
submit the proposal
Then
I should see "Details can't be blank"
Create proposal and go to voting page

Given

When
I go to the proposal page
And
enter the fields of the proposal
And
submit the proposal
And
navigate to the vote url
Then
I should see "Vote on a proposal"
And
the proposal title should be shown
Create proposal and go to stats page

Given

When
I go to the proposal page
And
enter the fields of the proposal
And
submit the proposal
And
navigate to the stats url
Then
I should see "Stats for proposal"
And
the proposal title should be shown
Proposal without email gives an error

Given

When
I go to the proposal page
And
enter the fields of the proposal
And
do not enter email
And
submit the proposal
Then
I should see "Email can't be blank"
Proposal with invalid email gives an error

Given

When
I go to the proposal page
And
enter the fields of the proposal
And
enter an invalid email address
And
submit the proposal
Then
I should see "Email is invalid"

Last published over 4 years ago by Shawn Button.