mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Add theme-components route for admin (#24264)
This commit adds an /admin/customize/theme-components route, that opens the theme page with the components tab pre-selected, so people can navigate to that directly.
This commit is contained in:
@@ -40,9 +40,19 @@ describe "Admin Customize Themes", type: :system do
|
||||
|
||||
expect(admin_customize_themes_page).to have_no_inactive_themes
|
||||
end
|
||||
|
||||
it "selects the themes tab by default" do
|
||||
visit("/admin/customize/themes")
|
||||
expect(find(".themes-list-header")).to have_css(".themes-tab.active")
|
||||
end
|
||||
|
||||
it "selects the component tab when visiting the theme-components route" do
|
||||
visit("/admin/customize/theme-components")
|
||||
expect(find(".themes-list-header")).to have_css(".components-tab.active")
|
||||
end
|
||||
end
|
||||
|
||||
describe "when visiting the page to customize the theme" do
|
||||
describe "when visiting the page to customize a single theme" do
|
||||
it "should allow admin to update the color scheme of the theme" do
|
||||
visit("/admin/customize/themes/#{theme.id}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user