Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#62032] Fix flickering time_entry_activity_spec

Dombi Attilaeaa03a36a8cf
diff --git a/spec/features/activities/time_entry_activity_spec.rb b/spec/features/activities/time_entry_activity_spec.rb
index c4eb1229b5a..57503cc9ab5 100644
--- a/spec/features/activities/time_entry_activity_spec.rb
+++ b/spec/features/activities/time_entry_activity_spec.rb
@@ -78,7 +78,7 @@ RSpec.describe "TimeEntry activity",
wait_for_reload
- expect(find_field("work_package_id_arg_1_val").value).to eq(work_package.id.to_s)
+ expect(page).to have_field("Work package Value", with: work_package.id)
old_comments = time_entry.comments
old_spent_on = time_entry.spent_on
@@ -114,6 +114,6 @@ RSpec.describe "TimeEntry activity",
wait_for_reload
- expect(find_field("work_package_id_arg_1_val").value).to eq(work_package2.id.to_s)
+ expect(page).to have_field("Work package Value", with: work_package2.id)
end
end