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

fix flickering test: wait for error message before clicking

Christophe Bliardcd15226c62aa
diff --git a/modules/my_page/spec/features/my/assigned_to_me_spec.rb b/modules/my_page/spec/features/my/assigned_to_me_spec.rb
index 000ad7df5d1..5da47f52139 100644
--- a/modules/my_page/spec/features/my/assigned_to_me_spec.rb
+++ b/modules/my_page/spec/features/my/assigned_to_me_spec.rb
@@ -148,12 +148,22 @@ describe 'Assigned to me embedded query on my page', type: :feature, js: true do
subject_field.set_value 'Assigned to me'
subject_field.save!
+ embedded_table.expect_toast(
+ message: 'Project can\'t be blank.',
+ type: :error
+ )
+
# Set project
project_field = embedded_table.edit_field(nil, :project)
project_field.expect_active!
project_field.openSelectField
project_field.set_value project.name
+ embedded_table.expect_toast(
+ message: 'Type is not set to one of the allowed values.',
+ type: :error
+ )
+
# Set type
type_field = embedded_table.edit_field(nil, :type)
type_field.expect_active!