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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Check if there is no loading indicator then test
bsatarnejad67b0c375cd06
diff --git a/spec/support/components/project_include_component.rb b/spec/support/components/project_include_component.rbindex e0d1f385d0a..e0245670340 100644--- a/spec/support/components/project_include_component.rb+++ b/spec/support/components/project_include_component.rb@@ -56,6 +56,7 @@ module Componentsenddef expect_checkbox(project_id, checked = false)+ no_loading_indicatorpage.find("[data-qa-project-include-id='#{project_id}'][data-qa-project-include-checked='#{checked ? '1' : '0'}']",wait: 10@@ -63,12 +64,14 @@ module Componentsenddef expect_no_checkbox(project_id)+ no_loading_indicatorunless page.has_no_selector?("[data-qa-project-include-id='#{project_id}']")raise "Expected not to find #{project_id}"endenddef search(text)+ no_loading_indicatorwithin_body dofill_in "project-include-search",with: text,@@ -101,5 +104,9 @@ module Componentsdef selector'.op-project-include'end++ def no_loading_indicator+ expect(page).to have_no_selector("[data-qa-selector='op-project-include--loading']")+ endendend