discourse/plugins/footnote/spec/system/admin_sidebar_navigation_spec.rb
Krzysztof Kotlarek 54771b5949
FIX: remove admin_sidebar_enabled_groups setting (#31693)
Old no sidebar admin panel is deprecated and admin sidebar is not
experimental anymore. Therefore, old setting should be deleted.
2025-03-11 11:41:38 +11:00

26 lines
572 B
Ruby

# frozen_string_literal: true
RSpec.describe "Admin | Sidebar Navigation", type: :system do
fab!(:admin)
let(:sidebar) { PageObjects::Components::NavigationMenu::Sidebar.new }
before do
SiteSetting.navigation_menu = "sidebar"
sign_in(admin)
end
it "adds an auto-generated plugin link to the admin sidebar" do
SiteSetting.enable_markdown_footnotes = true
visit("/admin")
sidebar.toggle_section(:plugins)
expect(page).to have_css(
".sidebar-section-link-content-text",
text: I18n.t("js.footnote.title"),
)
end
end