discourse/spec/system/user_page/user_page_search_spec.rb
Yuriy Kurant 215a129b68
Revert UX: header search mobile support (#32748)
This reverts the complete work on "Improvements to mobile search" while
respecting all the related changes that were made after the next two
PRs:

- https://github.com/discourse/discourse/pull/32306
- https://github.com/discourse/discourse/pull/31711
2025-05-15 14:27:40 +02:00

17 lines
430 B
Ruby
Vendored

# frozen_string_literal: true
describe "User page search", type: :system do
fab!(:user)
let(:search_page) { PageObjects::Pages::Search.new }
it "filters down to the user" do
sign_in(user)
visit("/u/#{user.username}")
search_page.click_search_icon
search_page.click_in_posts_by_user
expect(search_page).to have_found_no_results
expect(search_page.search_term).to eq("@#{user.username}")
end
end