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
Adapt tests to new sidebar structure of the cost reports
Henriette Darge6c053f76bc2e
diff --git a/modules/reporting/spec/features/saving_spec.rb b/modules/reporting/spec/features/saving_spec.rbindex f7a0cd15a21..3b0c0d8e5cd 100644--- a/modules/reporting/spec/features/saving_spec.rb+++ b/modules/reporting/spec/features/saving_spec.rb@@ -21,9 +21,9 @@ RSpec.describe 'Cost report saving', js: true doreport_page.save as: 'Testreport'# Check if the category is displayed- expect(page).to have_selector('#private_sidebar_report_category', text: I18n.t(:label_private_report_plural))+ expect(page).to have_selector('.op-sidemenu--title', text: I18n.t(:label_private_report_plural).upcase)# Check if the new report is displayed- expect(page).to have_selector('.tree-menu--title', text: 'Testreport')+ expect(page).to have_selector('.op-sidemenu--item-title', text: 'Testreport')report_page.expect_column_element 'Work package'report_page.expect_row_element 'Project'@@ -38,9 +38,9 @@ RSpec.describe 'Cost report saving', js: true doreport_page.save as: 'Public report', public: true# Check if the category is displayed- expect(page).to have_selector('#public_sidebar_report_category', text: I18n.t(:label_public_report_plural))+ expect(page).to have_selector('.op-sidemenu--title', text: I18n.t(:label_public_report_plural).upcase)# Check if the new report is displayed- expect(page).to have_selector('.tree-menu--title', text: 'Public report')+ expect(page).to have_selector('.op-sidemenu--item-title', text: 'Public report')report_page.expect_column_element 'Work package'report_page.expect_row_element 'Project'