diff options
author | Semyon Pupkov <mail@semyonpupkov.com> | 2017-01-04 15:46:26 +0500 |
---|---|---|
committer | Semyon Pupkov <mail@semyonpupkov.com> | 2017-01-04 15:48:25 +0500 |
commit | b9d0eeb5301fefddf71a73d04f237279fdcdea5b (patch) | |
tree | e5e71264e91011b03ad56175457394fa36d3ef85 /spec | |
parent | 115aac77f614a9130aa9bc6ff48aed47339aebfc (diff) | |
download | gitlab-ce-b9d0eeb5301fefddf71a73d04f237279fdcdea5b.tar.gz |
Move dashboard help spinach test to rspec
https://gitlab.com/gitlab-org/gitlab-ce/issues/23036
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/dashboard/help_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/features/dashboard/help_spec.rb b/spec/features/dashboard/help_spec.rb new file mode 100644 index 00000000000..2803f7ec62b --- /dev/null +++ b/spec/features/dashboard/help_spec.rb @@ -0,0 +1,17 @@ +require 'spec_helper' + +RSpec.describe 'Dashboard Help', feature: true do + before do + login_as(:user) + end + + 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' + end +end |