mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 07:43:43 +08:00
18 lines
478 B
Ruby
18 lines
478 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
describe "Admin Revamp | Sidebar Navigation | Plugin Links", type: :system do
|
||
|
fab!(:admin)
|
||
|
let(:sidebar) { PageObjects::Components::NavigationMenu::Sidebar.new }
|
||
|
|
||
|
before do
|
||
|
chat_system_bootstrap
|
||
|
SiteSetting.enable_admin_sidebar_navigation = true
|
||
|
sign_in(admin)
|
||
|
end
|
||
|
|
||
|
it "shows links to enabled plugin admin routes" do
|
||
|
visit("/admin")
|
||
|
expect(sidebar).to have_section_link("Chat", href: "/admin/plugins/chat")
|
||
|
end
|
||
|
end
|