Skip to content

Commit

Permalink
Fix flaky spec
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfierke committed Sep 16, 2023
1 parent 75c6ddb commit aa0f666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/features/manage/manage_posts_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@

within("[data-post-id='#{post.id}']") do
expect(page).to have_content("EDITED: #{post.title}")
expect(crunch(page.text)).to have_content("EDITED: #{post_summary_text(post)[0, 40]}")
expect(crunch(page.text)).to have_content(post_summary_text(post.reload)[0, 40])
expect(page).to have_content("Updated less than a minute ago")
expect(page).not_to have_content("##{category.name}")
end
Expand Down

0 comments on commit aa0f666

Please sign in to comment.