test/integration/main/article_page_test.rb in loco-rails-1.0.2 vs test/integration/main/article_page_test.rb in loco-rails-1.3.0

- old
+ new

@@ -26,11 +26,11 @@ assert page.has_content? '1 comment' assert page.has_content? 'Nice article man!' end test "should show info about editing" do - sleep 0.5 + sleep 0.1 emit articles(:one), :updating, data: {mark: Time.current.to_f.to_s} assert page.has_content? 'Author is currently editing article. Be aware of possible changes.' end test "should update number of comments if one was added" do @@ -69,10 +69,10 @@ visit "/articles/#{articles(:one).id}" within "section#comments" do assert_not page.has_content? 'Some nice thoughts dude (edited)' end update_comment comment - sleep 1 + sleep 0.1 within "section#comments" do assert page.has_content? 'Some nice thoughts dude (edited)' end end \ No newline at end of file