Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bsatarnejad committed Sep 25, 2024
1 parent ccdac98 commit 787f1c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/open_project/custom_styles/color_themes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module OpenProject::CustomStyles
module ColorThemes
module_function

OpenProject::CustomStyles::ColorThemes::DEFAULT_THEME_NAME = "OpenProject default".freeze
OpenProject::CustomStyles::ColorThemes::DEFAULT_THEME_NAME = "OpenProject (default)".freeze

DEPRECATED_ALTERNATIVE_COLOR = "#35C53F".freeze
DEPRECATED_PRIMARY_COLOR = "#1A67A3".freeze
Expand Down Expand Up @@ -61,7 +61,7 @@ module ColorThemes
}
},
{
theme: "OpenProject Grey",
theme: "OpenProject Gray",
colors: {
"primary-button-color" => PRIMER_PRIMARY_BUTTON_COLOR,
"accent-color" => ACCENT_COLOR,
Expand Down
6 changes: 3 additions & 3 deletions spec/features/custom_styles/tabs_navigation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
end

it "selects a color theme and redirect to the interface tab" do
select("OpenProject Light", from: "theme")
select("OpenProject Gray", from: "theme")
find("[data-test-selector='color-theme-button']").click
expect(page).to have_css(".op-toast.-success", text: I18n.t(:notice_successful_update))
expect(page).to have_current_path custom_style_path(tab: "interface")
Expand All @@ -76,7 +76,7 @@
expect(page).to have_current_path custom_style_path(tab: "branding")

# select a color theme and redirect to the branding tab
select("OpenProject Dark", from: "theme")
select("OpenProject Navy Blue", from: "theme")
find("[data-test-selector='color-theme-button']").click
expect(page).to have_css(".op-toast.-success", text: I18n.t(:notice_successful_update))
expect(page).to have_current_path custom_style_path(tab: "branding")
Expand All @@ -92,7 +92,7 @@
expect(page).to have_current_path custom_style_path(tab: "pdf_export_styles")

# select a color theme and redirect to the PDF export styles tab
select("OpenProject", from: "theme")
select("OpenProject (default)", from: "theme")
find("[data-test-selector='color-theme-button']").click
expect(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")
Expand Down

0 comments on commit 787f1c0

Please sign in to comment.