diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-02-14 17:43:03 -0600 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-02-15 13:31:18 -0600 |
commit | f1710bd131a040ef9104a1ff1a804b35c9568550 (patch) | |
tree | 40e4e0dbe0593a1cd291bee73f3142b4ff6ecfc6 /spec/features/dashboard | |
parent | 8c1b41f12b5ec8dd3dd2547d3ad729e71c4ebadd (diff) | |
download | gitlab-ce-f1710bd131a040ef9104a1ff1a804b35c9568550.tar.gz |
Delete sidebar specs and fixtures; update shortcuts_spec to check page title
Diffstat (limited to 'spec/features/dashboard')
-rw-r--r-- | spec/features/dashboard/shortcuts_spec.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/features/dashboard/shortcuts_spec.rb b/spec/features/dashboard/shortcuts_spec.rb index c5a0d1c6d99..62a2c54c94c 100644 --- a/spec/features/dashboard/shortcuts_spec.rb +++ b/spec/features/dashboard/shortcuts_spec.rb @@ -10,21 +10,20 @@ feature 'Dashboard shortcuts', feature: true, js: true do find('body').native.send_key('g') find('body').native.send_key('p') - ensure_active_main_tab('Projects') + check_page_title('Projects') find('body').native.send_key('g') find('body').native.send_key('i') - ensure_active_main_tab('Issues') + check_page_title('Issues') find('body').native.send_key('g') find('body').native.send_key('m') - ensure_active_main_tab('Merge Requests') + check_page_title('Merge Requests') end - def ensure_active_main_tab(content) - find('.global-dropdown-toggle').trigger('click') - expect(find('.global-dropdown-menu li.active')).to have_content(content) + def check_page_title(title) + expect(find('.header-content .title')).to have_content(title) end end |