Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-03-02 01:42:39 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-03-02 01:42:39 +0300
commitcb7dd09a9c85a35052b0776b84a7adf02695db8c (patch)
treefb3154019155f10882aed2a61bd801941e6820d8 /features/steps/shared
parent8b9a94af79ef3c5824ca62c5392fa4a01c41525e (diff)
Add click to tab steps
Diffstat (limited to 'features/steps/shared')
-rw-r--r--features/steps/shared/user.rb16
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