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

Change Board page expect_card to wait for reloading the board column

Dombi Attila49b314eee6ce
diff --git a/modules/boards/spec/features/support/board_page.rb b/modules/boards/spec/features/support/board_page.rb
index 26b3e6cadb0..ca215703fb1 100644
--- a/modules/boards/spec/features/support/board_page.rb
+++ b/modules/boards/spec/features/support/board_page.rb
@@ -136,11 +136,13 @@ module Pages
# Expect the given titled card in the list name to be present (expect=true) or not (expect=false)
def expect_card(list_name, card_title, present: true)
within_list(list_name) do
+ # Wait for the card loading to finish
+ expect(page).to have_no_selector(".loading-indicator--background")
expect(page).to have_conditional_selector(present,
'[data-test-selector="op-wp-single-card--content-subject"]',
text: card_title,
- # Wait only 1 second for non-presence expectation
- wait: present ? 10 : 1)
+ # Wait only 3 seconds for non-presence expectation
+ wait: present ? 10 : 0)
end
end