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
Fix and simplify the update_cost_repor_spec
Dombi Attila79c0466ee1a8
diff --git a/modules/reporting/spec/features/update_cost_report_spec.rb b/modules/reporting/spec/features/update_cost_report_spec.rbindex b63dbf30602..74ebfe17281 100644--- a/modules/reporting/spec/features/update_cost_report_spec.rb+++ b/modules/reporting/spec/features/update_cost_report_spec.rb@@ -55,17 +55,14 @@ RSpec.describe "updating a cost report's cost type", :js doreport_page.save(as: 'My Query', public: true)report_page.wait_for_page_to_reload- 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}")+ cost_query = CostQuery.find_by!(name: 'My Query')+ expect(page).to have_current_path("/projects/#{project.identifier}/cost_reports/#{cost_query.id}")- expect(page).to have_field('Labor', checked: true)- end+ expect(page).to have_field('Labor', checked: true)report_page.switch_to_type cost_type.nameexpect(page).to have_field(cost_type.name, checked: true, wait: 10)- report_page.wait_for_page_to_reloadclick_on "Save"click_on "My Query"