mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-07 14:36:07 +08:00
26 lines
557 B
Ruby
26 lines
557 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe "Admin | Sidebar Navigation" 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
|