Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions test/system/post_system_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,21 @@ class PostSystemTest < ApplicationSystemTestCase
end
end

test 'Anyone can view questions in the list' do
post = posts(:question_one)
visit post_url(post)

# Check that the post is displayed somewhere on the page
assert_text post.title
assert_text post.body

# Navigate to the question list for this category
click_on 'Posts'

# Check that there is at least one question listed
assert_no_text '0 posts'
end

test 'Anyone can sort answers' do
post = posts(:question_one)
visit post_url(post)
Expand Down
Loading