debian-mirror-gitlab/spec/features/dashboard/help_spec.rb

20 lines
584 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
require 'spec_helper'
2017-09-10 17:25:29 +05:30
RSpec.describe 'Dashboard Help' do
2017-08-17 22:00:37 +05:30
before do
2017-09-10 17:25:29 +05:30
sign_in(create(:user))
2017-08-17 22:00:37 +05:30
end
2019-03-02 22:35:43 +05:30
context 'documentation' do
it 'renders correctly markdown' do
visit help_page_path("administration/raketasks/maintenance")
2017-08-17 22:00:37 +05:30
2019-03-02 22:35:43 +05:30
expect(page).to have_content('Gather information about GitLab and the system it runs on')
2017-08-17 22:00:37 +05:30
2019-03-02 22:35:43 +05:30
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
2017-08-17 22:00:37 +05:30
end
end