Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
b9d0eeb5
Commit
b9d0eeb5
authored
Jan 04, 2017
by
Semyon Pupkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move dashboard help spinach test to rspec
https://gitlab.com/gitlab-org/gitlab-ce/issues/23036
parent
115aac77
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
30 deletions
+17
-30
features/dashboard/help.feature
features/dashboard/help.feature
+0
-9
features/steps/dashboard/help.rb
features/steps/dashboard/help.rb
+0
-21
spec/features/dashboard/help_spec.rb
spec/features/dashboard/help_spec.rb
+17
-0
No files found.
features/dashboard/help.feature
deleted
100644 → 0
View file @
115aac77
@dashboard
Feature
:
Dashboard Help
Background
:
Given
I sign in as a user
And
I visit the
"Rake Tasks"
help page
Scenario
:
The markdown should be rendered correctly
Then
I should see
"Rake Tasks"
page markdown rendered
And
Header
"Rebuild project satellites"
should have correct ids and links
features/steps/dashboard/help.rb
deleted
100644 → 0
View file @
115aac77
class
Spinach::Features::DashboardHelp
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedPaths
include
SharedMarkdown
step
'I visit the help page'
do
visit
help_path
end
step
'I visit the "Rake Tasks" help page'
do
visit
help_page_path
(
"administration/raketasks/maintenance"
)
end
step
'I should see "Rake Tasks" page markdown rendered'
do
expect
(
page
).
to
have_content
"Gather information about GitLab and the system it runs on"
end
step
'Header "Rebuild project satellites" should have correct ids and links'
do
header_should_have_correct_id_and_link
(
2
,
'Check GitLab configuration'
,
'check-gitlab-configuration'
,
'.documentation'
)
end
end
spec/features/dashboard/help_spec.rb
0 → 100644
View file @
b9d0eeb5
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment