rewrite dashboard feature steps using spinach

This commit is contained in:
Nihad Abbasov 2012-09-10 01:51:02 -07:00
parent bb75052a90
commit d74f54736b
9 changed files with 205 additions and 17 deletions

View file

@ -1,9 +1,9 @@
Feature: Dashboard
Background:
Given I signin as a user
Background:
Given I sign in as a user
And I own project "Shop"
And project "Shop" has push event
And I visit dashboard page
And I visit dashboard page
Scenario: I should see projects list
Then I should see "New Project" link
@ -25,4 +25,3 @@ Feature: Dashboard
And user with name "John Doe" left project "Shop"
When I visit dashboard page
Then I should see "John Doe left project Shop" event

View file

@ -1,8 +1,8 @@
Feature: Dashboard Issues
Background:
Given I signin as a user
Background:
Given I sign in as a user
And I have assigned issues
And I visit dashboard issues page
And I visit dashboard issues page
Scenario: I should see issues list
Then I should see issues assigned to me

View file

@ -1,8 +1,8 @@
Feature: Dashboard MR
Background:
Given I signin as a user
Feature: Dashboard Merge Requests
Background:
Given I sign in as a user
And I have authored merge requests
And I visit dashboard merge requests page
And I visit dashboard merge requests page
Scenario: I should see projects list
Then I should see my merge requests

View file

@ -1,11 +1,9 @@
Feature: Dashboard Search
Background:
Given I signin as a user
Background:
Given I sign in as a user
And I own project "Shop"
And I visit dashboard search page
And I visit dashboard search page
Scenario: I should see project i'm looking for
Scenario: I should see project I am looking for
Given I search for "Sho"
Then I should see "Shop" project link