mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 19:37:55 +08:00
aef7c2fe8f
Why this change? We are currently not fully satisfied with the current way to edit the categories and tags that appears in the sidebar where the user is redirected to the tracking preferences tab in the user's profile causing the user to lose context of the current page. In addition, the dropdown to select categories or tags limits the amount of information we can display. Since editing or adding a custom categories section is already using a modal, we have decided to switch editing the categories and tags that appear in the sidebar to use a modal as well. This commit removes the `new_edit_sidebar_categories_tags_interface_groups` site setting and make the modals the default for all users.
33 lines
961 B
Ruby
33 lines
961 B
Ruby
# frozen_string_literal: true
|
|
|
|
describe "Viewing sidebar preferences", type: :system do
|
|
let(:user_preferences_navigation_menu_page) do
|
|
PageObjects::Pages::UserPreferencesNavigationMenu.new
|
|
end
|
|
|
|
before { SiteSetting.navigation_menu = "sidebar" }
|
|
|
|
context "as an admin" do
|
|
fab!(:admin) { Fabricate(:admin) }
|
|
fab!(:user) { Fabricate(:user) }
|
|
|
|
before { sign_in(admin) }
|
|
|
|
it "should be able to view navigation menu preferences of another user" do
|
|
user.user_option.update!(
|
|
sidebar_link_to_filtered_list: true,
|
|
sidebar_show_count_of_new_items: true,
|
|
)
|
|
|
|
user_preferences_navigation_menu_page.visit(user)
|
|
|
|
expect(user_preferences_navigation_menu_page).to have_navigation_menu_preference_checked(
|
|
"pref-show-count-new-items",
|
|
)
|
|
expect(user_preferences_navigation_menu_page).to have_navigation_menu_preference_checked(
|
|
"pref-link-to-filtered-list",
|
|
)
|
|
end
|
|
end
|
|
end
|