diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-02 01:42:39 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-02 01:42:39 +0300 |
commit | cb7dd09a9c85a35052b0776b84a7adf02695db8c (patch) | |
tree | fb3154019155f10882aed2a61bd801941e6820d8 /features | |
parent | 8b9a94af79ef3c5824ca62c5392fa4a01c41525e (diff) |
Add click to tab steps
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/shared/user.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/features/steps/shared/user.rb b/features/steps/shared/user.rb index f0721094ee3..9856c510aa0 100644 --- a/features/steps/shared/user.rb +++ b/features/steps/shared/user.rb @@ -26,4 +26,20 @@ module SharedUser step 'I have no ssh keys' do @user.keys.delete_all end + + step 'I click on "Personal projects" tab' do + page.within '.nav-links' do + click_link 'Personal projects' + end + + expect(page).to have_css('.tab-content #projects.active') + end + + step 'I click on "Contributed projects" tab' do + page.within '.nav-links' do + click_link 'Contributed projects' + end + + expect(page).to have_css('.tab-content #contributed.active') + end end |