diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-27 15:41:35 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-27 15:41:35 +0200 |
commit | d24fd32aa5090e1f26f028921048e15f09f82323 (patch) | |
tree | 7fa6ef9c9d7c41cdc99049049cb4b4985c7d064b /features/steps | |
parent | cd47e625f0f6b564dff9a5e5fa51f3d88db2b530 (diff) | |
download | gitlab-ce-d24fd32aa5090e1f26f028921048e15f09f82323.tar.gz |
feature tests
Diffstat (limited to 'features/steps')
-rw-r--r-- | features/steps/dashboard/dashboard.rb | 6 | ||||
-rw-r--r-- | features/steps/shared/paths.rb | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/features/steps/dashboard/dashboard.rb b/features/steps/dashboard/dashboard.rb index 4bcefba76de..8c13ad0e151 100644 --- a/features/steps/dashboard/dashboard.rb +++ b/features/steps/dashboard/dashboard.rb @@ -63,6 +63,12 @@ class Dashboard < Spinach::FeatureSteps @project.team << [current_user, :master] end + Then 'I should see projects list' do + @user.authorized_projects.all.each do |project| + page.should have_link project.name_with_namespace + end + end + Then 'I should see groups list' do Group.all.each do |group| page.should have_link group.name diff --git a/features/steps/shared/paths.rb b/features/steps/shared/paths.rb index 0cfadfdffc4..42ef40d6b95 100644 --- a/features/steps/shared/paths.rb +++ b/features/steps/shared/paths.rb @@ -33,6 +33,10 @@ module SharedPaths visit dashboard_path end + Given 'I visit dashboard projects page' do + visit projects_dashboard_path + end + Given 'I visit dashboard issues page' do visit issues_dashboard_path end |