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

attempt to stabilize flickering spec

ulferts56ad1b5f6bea
diff --git a/spec/features/work_packages/new/attributes_from_filter_spec.rb b/spec/features/work_packages/new/attributes_from_filter_spec.rb
index c21369d6e14..2c7facbb561 100644
--- a/spec/features/work_packages/new/attributes_from_filter_spec.rb
+++ b/spec/features/work_packages/new/attributes_from_filter_spec.rb
@@ -97,12 +97,11 @@ RSpec.feature 'Work package create uses attributes from filters', js: true, sele
subject = split_page.edit_field(:subject)
subject.expect_active!
subject.set_value 'Foobar!'
- subject.submit_by_enter
+ split_page.save!
- wp_table.expect_notification(
+ wp_table.expect_and_dismiss_notification(
message: 'Successful creation. Click here to open this work package in fullscreen view.'
)
- wp_table.dismiss_notification!
wp = WorkPackage.last
expect(wp.subject).to eq 'Foobar!'
expect(wp.send("custom_field_#{custom_field.id}")).to eq %w(A)