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

add another sleep statement to flickering spec

ulfertsbd3ee654d2fc
diff --git a/modules/boards/spec/features/action_boards/status_type_moving_board_spec.rb b/modules/boards/spec/features/action_boards/status_type_moving_board_spec.rb
index 239d9552f4e..328f59ad8d0 100644
--- a/modules/boards/spec/features/action_boards/status_type_moving_board_spec.rb
+++ b/modules/boards/spec/features/action_boards/status_type_moving_board_spec.rb
@@ -126,11 +126,13 @@ RSpec.describe 'Status action board', js: true, with_ee: %i[board_view] do
filters.expect_filter_by('Type', 'is (OR)', [type_task.name, type_bug.name])
# Wait a bit before saving the page to ensure both values are processed
- sleep 2
+ sleep 1
board_page.expect_changed
board_page.save
+ sleep 1
+
# Move task to closed
board_page.move_card(0, from: 'Open', to: 'Closed')
board_page.expect_card('Open', 'Open task item', present: false)
@@ -141,7 +143,7 @@ RSpec.describe 'Status action board', js: true, with_ee: %i[board_view] do
board_page.card_for(bug_wp).expect_type 'Bug'
# Wait a bit before moving the items too fast
- sleep 2
+ sleep 1
# Move bug to open
board_page.move_card(0, from: 'Closed', to: 'Open')