mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 07:21:54 +08:00

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.
18 lines
412 B
Ruby
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
|