Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 37539d28b1
Fetching contributors…

Cannot retrieve contributors at this time

file 29 lines (25 sloc) 1.023 kb
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
Feature: Creating Tickets
In order to create tickets for projects
As a user
I want to be able to select a project and do that

Background:
Given there is a project called "Internet Explorer"
And I am on the homepage
When I follow "Internet Explorer"
And I follow "New Ticket"

Scenario: Creating a ticket
When I fill in "Title" with "Non-standards compliance"
And I fill in "Description" with "My pages are ugly!"
And I press "Create Ticket"
Then I should see "Ticket has been created."

Scenario: Creating a ticket without valid attributes fails
When I press "Create Ticket"
Then I should see "Ticket has not been created."
And I should see "Title can't be blank"
And I should see "Description can't be blank"

Scenario: Description must be longer than 10 characters
When I fill in "Title" with "Non-standards compliance"
And I fill in "Description" with "it sucks"
And I press "Create Ticket"
Then I should see "Ticket has not been created."
And I should see "Description is too short"
Something went wrong with that request. Please try again.