Add retry in case sign in failed for whatever reason (#1221)

This commit is contained in:
Andy Zhao 2018-11-29 13:39:49 -05:00 committed by Ben Halpern
parent 011e267769
commit 8b9aa98f64

View file

@ -28,7 +28,7 @@ describe "Editing with an editor" do
expect(page).to have_text(template[-200..-1])
end
it "user update their post" do
it "user update their post", retry: 3 do
visit "/#{user.username}/#{article.slug}/edit"
fill_in "article_body_markdown", with: template.gsub("true", "false")
click_button("article-submit")