swt2-intro-exercise / rails-exercise-18-lassesteffen

rails-exercise-18-lassesteffen created by GitHub Classroom
MIT License
0 stars 0 forks source link

Edit author page should save changes #10

Closed swt2public closed 5 years ago

swt2public commented 5 years ago

Scenario

Given an author named 'Alan Turing' When a user visits the author's edit page And changes first name to 'Alan Mathison' Then no error should occour

Hints

Changes made to the data in the edit form should be written to the database.

In a test, if an object's values should be reloaded from the database, after an action has modified them, the reload method is useful: @author.reload

The corresponding part of the Ruby on Rails guide is here

Error

Got Capybara::ElementNotFound: Unable to find field "author[first_name]"

Estimated progress: 50% complete

swt2public commented 5 years ago

Sorry, it's not working for me yet:

Scenario

Given an author named 'Alan Turing' When a user visits the author's edit page And changes first name to 'Alan Mathison' Then no error should occour

Error

Got Capybara::ElementNotFound: Unable to find field "author[first_name]"

If you have problems solving this task, please don't hesitate to contact the teaching team!