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

Wait for assignee activity to be present before escalation

Aaron Contrerasacc334fb6f4b
diff --git a/spec/features/work_packages/custom_actions/custom_actions_spec.rb b/spec/features/work_packages/custom_actions/custom_actions_spec.rb
index 0f70241d03c..59b25b5c5c0 100644
--- a/spec/features/work_packages/custom_actions/custom_actions_spec.rb
+++ b/spec/features/work_packages/custom_actions/custom_actions_spec.rb
@@ -316,15 +316,24 @@ RSpec.describe 'Custom actions', :js, :with_cuprite,
wp_page.click_custom_action('Unassign')
wp_page.expect_attributes assignee: '-'
+ within '.work-package-details-activities-list' do
+ expect(page)
+ .to have_css('.op-user-activity .op-user-activity--user-name',
+ text: user.name,
+ wait: 10)
+ end
wp_page.click_custom_action('Escalate')
wp_page.expect_attributes priority: immediate_priority.name,
status: default_status.name,
assignee: '-',
"customField#{list_custom_field.id}" => selected_list_custom_field_options.map(&:name).join("\n")
-
- expect(page)
- .to have_css('.work-package-details-activities-activity-contents a.user-mention', text: other_member_user.name, wait: 10)
+ within '.work-package-details-activities-list' do
+ expect(page)
+ .to have_css('.op-user-activity a.user-mention',
+ text: other_member_user.name,
+ wait: 10)
+ end
wp_page.click_custom_action('Close')
wp_page.expect_attributes status: closed_status.name,