add spinach steps for project issues and source features

This commit is contained in:
Nihad Abbasov 2012-09-10 05:34:01 -07:00
parent 080bd12e16
commit 698500dd78
11 changed files with 345 additions and 26 deletions

View file

@ -1,6 +1,6 @@
Feature: Issues
Feature: Project Issues
Background:
Given I signin as a user
Given I sign in as a user
And I own project "Shop"
And project "Shop" have "Release 0.4" open issue
And project "Shop" have "Release 0.3" closed issue
@ -79,4 +79,3 @@ Feature: Issues
When I select first assignee from "Shop" project
And I click link "New Issue"
Then I should see first assignee from "Shop" as selected assignee

View file

@ -1,12 +1,9 @@
Feature: Labels
Feature: Project Labels
Background:
Given I signin as a user
Given I sign in as a user
And I own project "Shop"
And project "Shop" have issues tags:
| name |
| bug |
| feature |
Given I visit project "Shop" labels page
And project "Shop" have issues tags: "bug", "feature"
Given I visit project "Shop" labels page
Scenario: I should see active milestones
Then I should see label "bug"

View file

@ -1,9 +1,9 @@
Feature: Milestones
Feature: Project Milestones
Background:
Given I signin as a user
Given I sign in as a user
And I own project "Shop"
And project "Shop" has milestone "v2.2"
Given I visit project "Shop" milestones page
Given I visit project "Shop" milestones page
Scenario: I should see active milestones
Then I should see milestone "v2.2"

View file

@ -1,6 +1,6 @@
Feature: Browse git repo
Background:
Given I signin as a user
Feature: Project Browse files
Background:
Given I sign in as a user
And I own project "Shop"
Given I visit project source page
@ -12,12 +12,10 @@ Feature: Browse git repo
Then I should see files from repository for "8470d70"
Scenario: I browse file content
Given I click on file from repo
Given I click on "Gemfile" file in repo
Then I should see it content
Scenario: I browse raw file
Given I visit blob file from repo
And I click on raw button
Given I visit blob file from repo
And I click link "raw"
Then I should see raw file content

View file

@ -1,10 +1,10 @@
Feature: Browse git repo
Background:
Given I signin as a user
Feature: Project Browse git repo
Background:
Given I sign in as a user
And I own project "Shop"
Given I visit project source page
Scenario: I blame file
Given I click on file from repo
Given I click on "Gemfile" file in repo
And I click blame button
Then I should see git file blame
Then I should see git file blame