Add click to tab steps
This commit is contained in:
parent
8b9a94af79
commit
cb7dd09a9c
|
@ -26,4 +26,20 @@ module SharedUser
|
||||||
step 'I have no ssh keys' do
|
step 'I have no ssh keys' do
|
||||||
@user.keys.delete_all
|
@user.keys.delete_all
|
||||||
end
|
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
|
end
|
||||||
|
|
Loading…
Reference in New Issue