discourse/spec/system/posts_page_spec.rb
Keegan George 5d4bb4b54e
UX: Improvements to posts route (#30968)
This update makes some small improvements to the posts route front-end.
Specifically, it adds a title to the page, and it improves the
positioning of expand/collapse caret.
2025-01-23 19:04:43 -08:00

18 lines
412 B
Ruby

# frozen_string_literal: true
describe "Posts page", type: :system do
fab!(:post)
fab!(:post_2) { Fabricate(:post) }
fab!(:post_3) { Fabricate(:post) }
fab!(:user)
let(:posts_page) { PageObjects::Pages::Posts.new }
before { sign_in(user) }
it "renders the posts page with posts" do
posts_page.visit
expect(posts_page).to have_page_title
expect(posts_page).to have_posts(3)
end
end