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
Rewrite cost spec for better waiting
Oliver Güntherb5f4e7af30c1
diff --git a/modules/reporting/spec/features/update_cost_report_spec.rb b/modules/reporting/spec/features/update_cost_report_spec.rbindex 03088b6f7ce..260f5582bbe 100644--- a/modules/reporting/spec/features/update_cost_report_spec.rb+++ b/modules/reporting/spec/features/update_cost_report_spec.rb@@ -52,8 +52,16 @@ describe "updating a cost report's cost type", type: :feature, js: true doit 'works' doreport_page.visit!report_page.save(as: 'My Query', public: true)- SeleniumHubWaiter.wait++ retry_block do+ cost_query = CostQuery.find_by!(name: 'My Query')+ raise "Expected path change" unless page.has_current_path?("/projects/#{project.identifier}/cost_reports/#{cost_query.id}")+ expect(page).to have_field('Labor', checked: true)+ end+report_page.switch_to_type cost_type.name+ expect(page).to have_field(cost_type.name, checked: true, wait: 10)+click_on "Save"click_on "My Query"