diff --git a/app/views/notes/_notes.html.erb b/app/views/notes/_notes.html.erb index 7cfc7fde19..f6cdb3bdaf 100644 --- a/app/views/notes/_notes.html.erb +++ b/app/views/notes/_notes.html.erb @@ -2,7 +2,7 @@
<% notes.each_with_index do |node,i| %> -
+
<% if node.main_image %> target="_blank"<% end %> href="<%= node.path %>"> diff --git a/test/system/post_test.rb b/test/system/post_test.rb index fd533706fe..8f244a5400 100644 --- a/test/system/post_test.rb +++ b/test/system/post_test.rb @@ -25,7 +25,7 @@ def setup assert_page_reloads do find('.ple-publish').click - assert_selector('h1', text: "My new post") + assert_selector('h1', text: "My new post", wait: 4) assert_selector('#content', text: "All about this interesting stuff") assert_selector('.alert-success', text: "×\nSuccess! Thank you for contributing open research, and thanks for your patience while your post is approved by community moderators and we'll email you when it is published. In the meantime, if you have more to contribute, feel free to do so.")