mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 04:36:11 +10:00
Add tests for starred projects page
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
@dashboard
|
||||
Feature: Dashboard Starred Projects
|
||||
Background:
|
||||
Given I sign in as a user
|
||||
And public project "Community"
|
||||
And I starred project "Community"
|
||||
And I own project "Shop"
|
||||
And I visit dashboard starred projects page
|
||||
|
||||
Scenario: I should see projects list
|
||||
Then I should see project "Community"
|
||||
And I should not see project "Shop"
|
||||
@@ -0,0 +1,15 @@
|
||||
class Spinach::Features::DashboardStarredProjects < Spinach::FeatureSteps
|
||||
include SharedAuthentication
|
||||
include SharedPaths
|
||||
include SharedProject
|
||||
|
||||
step 'I starred project "Community"' do
|
||||
current_user.toggle_star(Project.find_by(name: 'Community'))
|
||||
end
|
||||
|
||||
step 'I should not see project "Shop"' do
|
||||
within 'aside' do
|
||||
page.should_not have_content('Shop')
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -95,6 +95,10 @@ module SharedPaths
|
||||
current_path.should == dashboard_groups_path
|
||||
end
|
||||
|
||||
step 'I visit dashboard starred projects page' do
|
||||
visit starred_dashboard_projects_path
|
||||
end
|
||||
|
||||
# ----------------------------------------
|
||||
# Profile
|
||||
# ----------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user