Skip to content
Browse files

Add form component markup

Inner green
Outer red: expected, actual

Now that we're rendering markup for the component, its unit test is able to find the title field and fill it in. The acceptance test also gets past the point of filling in the title, and now it reports that it expected to end up at the route, but it was still on the route. This is because we haven't told the component to do anything when the save button is clicked. We need to get Ember handling the form submission.
  • Loading branch information...
CodingItWrong committed Jan 11, 2018
1 parent 9a89ac4 commit 0e0676c762d506a351db4a42df6581c510f12a12
Showing with 12 additions and 1 deletion.
  1. +12 −1 app/templates/components/post-form.hbs
@@ -1 +1,12 @@
<label for="js-post-form-title">Title</label>
<input type="text" class="js-post-form-title">
<label for="js-post-form-body">Body</label>
<textarea class="js-post-form-body" />

<button type="button" class="js-post-form-save">Save</button>

0 comments on commit 0e0676c

Please sign in to comment.
You can’t perform that action at this time.