blob: 3642c0bfb5ba89c2daab37c161127addcfc0f65a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
require 'spec_helper'
feature 'Dashboard shortcuts', feature: true, js: true do
before do
login_as :user
visit dashboard_projects_path
end
scenario 'Navigate to tabs' do
find('body').native.send_key('g')
find('body').native.send_key('p')
check_page_title('Projects')
find('body').native.send_key('g')
find('body').native.send_key('i')
check_page_title('Issues')
find('body').native.send_key('g')
find('body').native.send_key('m')
check_page_title('Merge Requests')
find('body').native.send_key('g')
find('body').native.send_key('t')
check_page_title('Todos')
end
def check_page_title(title)
expect(find('.header-content .title')).to have_content(title)
end
end
|