Add click to tab steps

This commit is contained in:
Alfredo Sumaran 2016-03-01 17:42:39 -05:00
parent 8b9a94af79
commit cb7dd09a9c
1 changed files with 16 additions and 0 deletions

View File

@ -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