sorachung/StoriesByUs

Edit Existing Chapter in a Story

sorachung opened this issue · 0 comments

GIVEN user is authenticated and on the My Stories tab in My Profile
WHEN user clicks Edit Chapter
THEN the user should be redirected to the edit chapter page featuring a dropdown of a list of chapters in the story

GIVEN the user has decided on a chapter to edit
WHEN they choose the chapter in the dropdown select
THEN a the chapter edit form should be appear and be populated with the chapter's current property values

GIVEN the user has edited any of the fields
WHEN they click the Save button
THEN a the Chapter object should be edited in the database
AND the user should be redirected to the edited chapter of the story

OR

GIVEN the user has decided against editing the chapter
WHEN they click the Cancel button
THEN the user should be redirected to the My Stories tab in the My Profiles page