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
change the test to check if it is in interface tab in the first page load
Behrokh Satarnejad5889daca5771
diff --git a/spec/features/custom_styles/tabs_spec.rb b/spec/features/custom_styles/tabs_spec.rbindex cdf7c921f33..df7f592aa43 100644--- a/spec/features/custom_styles/tabs_spec.rb+++ b/spec/features/custom_styles/tabs_spec.rb@@ -45,16 +45,11 @@ RSpec.describe "interface tab" docontext "with EE token", with_ee: %i[define_custom_style] dobefore dologin_as(admin)- visit custom_style_path(tab: "interface")+ visit custom_style_pathend- it "doesn't show an upload button" do+ it "interface tab is selected when selecting design from menu" doexpect(page).to have_current_path(custom_style_path tab:'interface')- expect(page).not_to have_text "Upload"- end-- it "doesn't show a replace button" do- expect(page).not_to have_text "Replace"endit "shows interface colours" do@@ -65,12 +60,14 @@ RSpec.describe "interface tab" doselect("OpenProject Light", from: "theme")find("[data-test-selector='change-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')endit "changes accent color" dofill_in "design_colors[]accent-color", with: "#333333"find("[data-test-selector='update-interface-colors']").clickexpect(page).to have_css("#design_colors_accent-color", value: "#333333")+ expect(page).to have_current_path(custom_style_path tab:'interface')endit "redirects to branding tab" do