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 rubocup errors
Behrokh Satarnejad875d40bd12e6
diff --git a/spec/features/custom_styles/tabs_spec.rb b/spec/features/custom_styles/tabs_spec.rbindex ba981d72be9..9c1a7e9d690 100644--- a/spec/features/custom_styles/tabs_spec.rb+++ b/spec/features/custom_styles/tabs_spec.rb@@ -51,7 +51,7 @@ RSpec.describe "interface tab" doendit "shows interface tab" do- expect(page).to have_current_path(custom_style_path tab: "interface")+ expect(page).to have_current_path custom_style_path(tab: "interface")expect(page).to have_text I18n.t(:label_interface_colours)end@@ -59,46 +59,46 @@ RSpec.describe "interface tab" doselect("OpenProject Light", from: "theme")find("[data-test-selector='color-theme-button']").clickexpect(page).to have_css(".op-toast.-success", text: I18n.t(:notice_successful_update))- expect(page).to have_current_path(custom_style_path tab:"interface")+ expect(page).to have_current_path custom_style_path(tab: "interface")endit "changes accent color and redirects to interface tab" dofill_in "design_colors[]accent-color", with: "#333333"find("[data-test-selector='interface-colors-button']").clickexpect(page).to have_css("#design_colors_accent-color", value: "#333333")- expect(page).to have_current_path(custom_style_path tab: "interface")+ expect(page).to have_current_path custom_style_path(tab: "interface")endit "redirects to branding tab" doclick_on "Branding"- expect(page).to have_current_path(custom_style_path tab: "branding")+ expect(page).to have_current_path custom_style_path(tab: "branding")# select a color theme and redirect to the branding tabselect("OpenProject Dark", from: "theme")find("[data-test-selector='color-theme-button']").clickexpect(page).to have_css(".op-toast.-success", text: I18n.t(:notice_successful_update))- expect(page).to have_current_path(custom_style_path tab: "branding")+ expect(page).to have_current_path custom_style_path(tab: "branding")# remove the logo and redirect to the branding tab- custom_style.send :"remove_logo"- expect(page).to have_current_path(custom_style_path tab: "branding")+ custom_style.send `:remove_logo`+ expect(page).to have_current_path custom_style_path(tab: "branding")endit "redirects to pdf export styles tab" doclick_on "PDF export styles"- expect(page).to have_current_path(custom_style_path tab: "pdf_export_styles")+ expect(page).to have_current_path custom_style_path(tab: "pdf_export_styles")# select a color theme and redirect to the PDF export styles tabselect("OpenProject", from: "theme")find("[data-test-selector='color-theme-button']").clickexpect(page).to have_css(".op-toast.-success", text: I18n.t(:notice_successful_update))- expect(page).to have_current_path(custom_style_path tab: "pdf_export_styles")+ expect(page).to have_current_path custom_style_path(tab: "pdf_export_styles")# change export cover text color and redirect to the PDF export styles tabfill_in "export_cover_text_color", with: "#333"find("[data-test-selector='text-color-change']").clickexpect(page).to have_css("#export_cover_text_color", value: "#333")- expect(page).to have_current_path(custom_style_path tab: "pdf_export_styles")+ expect(page).to have_current_path custom_style_path(tab: "pdf_export_styles")endendend