2023-10-18 23:23:41 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-11-20 09:49:49 -06:00
|
|
|
describe "Admin Revamp | Sidebar Navigation", type: :system do
|
2023-11-09 16:47:59 -06:00
|
|
|
fab!(:admin)
|
2023-10-18 23:23:41 -05:00
|
|
|
let(:sidebar_page) { PageObjects::Components::NavigationMenu::Sidebar.new }
|
|
|
|
|
|
|
|
before do
|
|
|
|
SiteSetting.enable_experimental_admin_ui_groups = Group::AUTO_GROUPS[:staff]
|
|
|
|
SidebarSection.find_by(section_type: "community").reset_community!
|
|
|
|
sign_in(admin)
|
|
|
|
end
|
|
|
|
|
|
|
|
it "navigates to the admin revamp from the sidebar" do
|
|
|
|
visit("/latest")
|
|
|
|
sidebar_page.click_section_link("Admin Revamp")
|
2023-11-01 19:34:37 -05:00
|
|
|
expect(page).to have_content("Lobby")
|
|
|
|
expect(page).to have_content("Legacy Admin")
|
2023-10-18 23:23:41 -05:00
|
|
|
end
|
|
|
|
end
|