diff options
author | Rémy Coutable <remy@rymai.me> | 2017-06-09 14:12:42 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-06-09 14:12:42 +0300 |
commit | 519ffaeb7afb563adf544acb29b0ab46c59ce728 (patch) | |
tree | a10b67af0a39959dd48e0ef5429fae4a2349ce7c /spec | |
parent | 95138a9c16a2d1905354d0f46381b3822b37863d (diff) |
Ensure wiki is created before we visit the Wiki page
:facepalm:
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects/wiki/markdown_preview_spec.rb | 3 |
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 |