Skip to content

Commit

Permalink
flaky test - wait for network requests to complete on wp update in ac…
Browse files Browse the repository at this point in the history
  • Loading branch information
akabiru authored Feb 21, 2025
1 parent 16c3daa commit e00f857
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/features/activities/work_package/activities_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@
end

wp_page.update_attributes(subject: "A new subject") # rubocop:disable Rails/ActiveRecordAliases
wait_for_network_idle
wp_page.expect_and_dismiss_toaster(message: "Successful update.")

second_journal = work_package.journals.second
Expand All @@ -363,6 +364,7 @@
# the journals will not be merged due to the time difference

wp_page.update_attributes(subject: "A new subject!!!") # rubocop:disable Rails/ActiveRecordAliases
wait_for_network_idle

third_journal = work_package.journals.third

Expand Down

0 comments on commit e00f857

Please sign in to comment.