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
Léo-Paul Géneau
gitlab-ce
Commits
c466f389
Commit
c466f389
authored
Feb 09, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests to match new wiki header
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
997a317b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
app/views/projects/wikis/edit.html.haml
app/views/projects/wikis/edit.html.haml
+1
-1
features/steps/profile/profile.rb
features/steps/profile/profile.rb
+1
-1
features/steps/project/source/markdown_render.rb
features/steps/project/source/markdown_render.rb
+5
-1
features/steps/project/wiki.rb
features/steps/project/wiki.rb
+4
-2
No files found.
app/views/projects/wikis/edit.html.haml
View file @
c466f389
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
=
@page
.
title
.
capitalize
=
@page
.
title
.
capitalize
%span
.light
%span
.light
·
·
Edit
Edit
Page
.nav-controls
.nav-controls
=
render
'main_links'
=
render
'main_links'
...
...
features/steps/profile/profile.rb
View file @
c466f389
...
@@ -97,7 +97,7 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
...
@@ -97,7 +97,7 @@ class Spinach::Features::Profile < Spinach::FeatureSteps
end
end
step
"I should see a password error message"
do
step
"I should see a password error message"
do
page
.
within
'.alert'
do
page
.
within
'.alert
-danger
'
do
expect
(
page
).
to
have_content
"Password confirmation doesn't match"
expect
(
page
).
to
have_content
"Password confirmation doesn't match"
end
end
end
end
...
...
features/steps/project/source/markdown_render.rb
View file @
c466f389
...
@@ -238,7 +238,11 @@ class Spinach::Features::ProjectSourceMarkdownRender < Spinach::FeatureSteps
...
@@ -238,7 +238,11 @@ class Spinach::Features::ProjectSourceMarkdownRender < Spinach::FeatureSteps
step
'I see new wiki page named test'
do
step
'I see new wiki page named test'
do
expect
(
current_path
).
to
eq
namespace_project_wiki_path
(
@project
.
namespace
,
@project
,
"test"
)
expect
(
current_path
).
to
eq
namespace_project_wiki_path
(
@project
.
namespace
,
@project
,
"test"
)
expect
(
page
).
to
have_content
"Edit Page test"
page
.
within
(
:css
,
".nav-text"
)
do
expect
(
page
).
to
have_content
"Test"
expect
(
page
).
to
have_content
"Edit Page"
end
end
end
When
'I go back to wiki page home'
do
When
'I go back to wiki page home'
do
...
...
features/steps/project/wiki.rb
View file @
c466f389
...
@@ -120,7 +120,7 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
...
@@ -120,7 +120,7 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
step
'I should see the new wiki page form'
do
step
'I should see the new wiki page form'
do
expect
(
current_path
).
to
match
(
'wikis/image.jpg'
)
expect
(
current_path
).
to
match
(
'wikis/image.jpg'
)
expect
(
page
).
to
have_content
(
'New Wiki Page'
)
expect
(
page
).
to
have_content
(
'New Wiki Page'
)
expect
(
page
).
to
have_content
(
'Edit Page
image.jpg
'
)
expect
(
page
).
to
have_content
(
'Edit Page'
)
end
end
step
'I create a New page with paths'
do
step
'I create a New page with paths'
do
...
@@ -159,7 +159,9 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
...
@@ -159,7 +159,9 @@ class Spinach::Features::ProjectWiki < Spinach::FeatureSteps
end
end
step
'I should see the page history'
do
step
'I should see the page history'
do
expect
(
page
).
to
have_content
(
'History for'
)
page
.
within
(
:css
,
".nav-text"
)
do
expect
(
page
).
to
have_content
(
'History'
)
end
end
end
step
'I search for Wiki content'
do
step
'I search for Wiki content'
do
...
...
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