diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-01-14 16:10:19 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2019-01-14 16:10:19 +0000 |
commit | cc281afb27365adef2d24c85f83686cc8b829187 (patch) | |
tree | 0c2d33acde02760d7d45e22c0cdba8f8a8a3f2d6 /spec/features | |
parent | 31af7daf788f3f65d630ab4e5d8bae4bd5607807 (diff) | |
download | gitlab-ce-cc281afb27365adef2d24c85f83686cc8b829187.tar.gz |
Resolve "Add "What's new" menu item in top navigation"
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/dashboard/help_spec.rb | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/spec/features/dashboard/help_spec.rb b/spec/features/dashboard/help_spec.rb index 68bfbf22736..fa12cecc984 100644 --- a/spec/features/dashboard/help_spec.rb +++ b/spec/features/dashboard/help_spec.rb @@ -5,13 +5,23 @@ RSpec.describe 'Dashboard Help' do sign_in(create(:user)) end - it 'renders correctly markdown' do - visit help_page_path("administration/raketasks/maintenance") + context 'help dropdown' do + it 'shows the "What\'s new?" menu item' do + visit root_dashboard_path - expect(page).to have_content('Gather information about GitLab and the system it runs on') + expect(page.find('.header-help .dropdown-menu')).to have_text("What's new?") + end + end + + context 'documentation' do + it 'renders correctly markdown' do + visit help_page_path("administration/raketasks/maintenance") + + expect(page).to have_content('Gather information about GitLab and the system it runs on') - node = find('.documentation h2 a#user-content-check-gitlab-configuration') - expect(node[:href]).to eq '#check-gitlab-configuration' - expect(find(:xpath, "#{node.path}/..").text).to eq 'Check GitLab configuration' + node = find('.documentation h2 a#user-content-check-gitlab-configuration') + expect(node[:href]).to eq '#check-gitlab-configuration' + expect(find(:xpath, "#{node.path}/..").text).to eq 'Check GitLab configuration' + end end end |