Skip to content

Commit

Permalink
Add post detail display markup
Browse files Browse the repository at this point in the history
We make the component test pass by adding markup to display the post.

Inner green; outer red:
✘ Element .js-post-detail-title has text "Test Post"
✘ Element .js-post-detail-body has text "This post is a test!"

The acceptance test still has the same error! Why's that? Well, we're not actually saving the post when we click save, and we aren't loading the post on the show page.
  • Loading branch information
Josh Justice authored and CodingItWrong committed Jan 12, 2019
1 parent 8da861b commit 075ca14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/templates/components/post-detail.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
{{yield}}
<h2 class="js-post-detail-title">{{post.title}}</h2>

<div class="js-post-detail-body">
{{post.body}}
</div>

0 comments on commit 075ca14

Please sign in to comment.