Fix `send_key` to `send_keys` and add EOF newline
This commit is contained in:
parent
ca9033bd5d
commit
8480118d2b
|
@ -8,11 +8,11 @@ feature 'Dashboard shortcuts', :feature, :js do
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'Navigate to tabs' do
|
scenario 'Navigate to tabs' do
|
||||||
find('body').send_key([:shift, 'I'])
|
find('body').send_keys([:shift, 'I'])
|
||||||
|
|
||||||
check_page_title('Issues')
|
check_page_title('Issues')
|
||||||
|
|
||||||
find('body').send_key([:shift, 'M'])
|
find('body').send_keys([:shift, 'M'])
|
||||||
|
|
||||||
check_page_title('Merge Requests')
|
check_page_title('Merge Requests')
|
||||||
|
|
||||||
|
@ -52,4 +52,4 @@ feature 'Dashboard shortcuts', :feature, :js do
|
||||||
def check_page_title(title)
|
def check_page_title(title)
|
||||||
expect(find('.header-content .title')).to have_content(title)
|
expect(find('.header-content .title')).to have_content(title)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue