diff --git a/spec/system/articles/user_edits_an_article_spec.rb b/spec/system/articles/user_edits_an_article_spec.rb index 271b4fd7f..0b4fc8f01 100644 --- a/spec/system/articles/user_edits_an_article_spec.rb +++ b/spec/system/articles/user_edits_an_article_spec.rb @@ -25,7 +25,7 @@ RSpec.describe "Editing with an editor", type: :system, js: true do it "user unpublishes their post" do visit "/#{user.username}/#{article.slug}/edit" - fill_in "article_body_markdown", with: template.gsub("true", "false") + fill_in("article_body_markdown", with: template.gsub("true", "false"), fill_options: { clear: :backspace }) click_button("Save changes") expect(page).to have_text("Unpublished Post.") end