From cb7dd09a9c85a35052b0776b84a7adf02695db8c Mon Sep 17 00:00:00 2001 From: Alfredo Sumaran Date: Tue, 1 Mar 2016 17:42:39 -0500 Subject: [PATCH] Add click to tab steps --- features/steps/shared/user.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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