Skip to content
Snippets Groups Projects
Commit 15a72a3b authored by Alex Denisov's avatar Alex Denisov
Browse files

Spinach test added

parent c873cf81
No related branches found
No related tags found
1 merge request!2107Projects count at dashboard
Loading
Loading
@@ -15,6 +15,12 @@ Feature: Dashboard
And I visit dashboard page
Then I should see groups list
 
Scenario: I should see correct projects count
Given I have group with projects
And group has a projects that does not belongs to me
When I visit dashboard page
Then I should see 1 project at group list
Scenario: I should see last push widget
Then I should see last push widget
And I click "Create Merge Request" link
Loading
Loading
Loading
Loading
@@ -103,4 +103,14 @@ class Dashboard < Spinach::FeatureSteps
page.should have_link group.name
end
end
And 'group has a projects that does not belongs to me' do
@forbidden_project1 = create(:project, group: @group)
@forbidden_project2 = create(:project, group: @group)
end
Then 'I should see 1 project at group list' do
page.find('span.last_activity/span').should have_content('1')
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment