Add click to tab steps
This commit is contained in:
parent
8b9a94af79
commit
cb7dd09a9c
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue