summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-09 13:12:42 +0200
committerRémy Coutable <remy@rymai.me>2017-06-09 13:12:42 +0200
commit519ffaeb7afb563adf544acb29b0ab46c59ce728 (patch)
treea10b67af0a39959dd48e0ef5429fae4a2349ce7c
parent95138a9c16a2d1905354d0f46381b3822b37863d (diff)
downloadgitlab-ce-32622-fix-markdown_preview_spec.tar.gz
Ensure wiki is created before we visit the Wiki page32622-fix-markdown_preview_spec
:facepalm: Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--spec/features/projects/wiki/markdown_preview_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/features/projects/wiki/markdown_preview_spec.rb b/spec/features/projects/wiki/markdown_preview_spec.rb
index 49d7ef09e64..94f6bb16730 100644
--- a/spec/features/projects/wiki/markdown_preview_spec.rb
+++ b/spec/features/projects/wiki/markdown_preview_spec.rb
@@ -14,11 +14,12 @@ feature 'Projects > Wiki > User previews markdown changes', feature: true, js: t
background do
project.team << [user, :master]
+ WikiPages::CreateService.new(project, user, title: 'home', content: 'Home page').execute
+
login_as(user)
visit namespace_project_path(project.namespace, project)
find('.shortcuts-wiki').trigger('click')
- WikiPages::CreateService.new(project, user, title: 'home', content: 'Home page').execute
end
context "while creating a new wiki page" do