mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-21 03:19:56 +08:00
22 lines
686 B
Ruby
Vendored
22 lines
686 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
describe "Admin Search Plugin Pages" do
|
|
fab!(:current_user, :admin)
|
|
let(:search_modal) { PageObjects::Modals::AdminSearch.new }
|
|
let(:sidebar) { PageObjects::Components::NavigationMenu::Sidebar.new }
|
|
|
|
before { sign_in(current_user) }
|
|
|
|
it "can find admin plugin pages in admin search" do
|
|
visit "/admin"
|
|
sidebar.click_search_input
|
|
search_modal.search("incoming webhooks")
|
|
|
|
expect(search_modal.find_result("page", 0)).to have_content(
|
|
I18n.t("js.chat.incoming_webhooks.title"),
|
|
)
|
|
expect(search_modal.find_result("page", 0)).to have_content(
|
|
I18n.t("js.chat.incoming_webhooks.header_description"),
|
|
)
|
|
end
|
|
end
|