Skip to content

Commit

Permalink
attempt to fix flickering spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ulferts committed Dec 4, 2024
1 parent 478d308 commit e47c721
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/features/news/creation_and_commenting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
member_with_permissions: { project => %i[manage_news comment_news] })
end

include Flash::Expectations

it "allows creating new and commenting it all of which will result in notifications and mails" do
visit project_news_index_path(project)

Expand Down Expand Up @@ -81,8 +83,11 @@

perform_enqueued_jobs do
click_button "Add comment"
wait_for_network_idle
end

expect_and_dismiss_flash message: "Comment added"

# The new comment is visible on the show page
expect(page)
.to have_content "A new text"
Expand Down

0 comments on commit e47c721

Please sign in to comment.