- As an authorized user, I want to upload a copy of my dissertation to the repository services platform so that I can manage its preservation and dissemination.
- ...
Scenario 1: User is not authenticated Given the user is an authorized user And she has not yet authenticated When she visits the URL for uploading files Then she is challenged by a login screen And, upon authentication, she is redirected to the upload form
Scenario 2: User is not authorized Given the user has successfully authenticated And she is not an authorized user When she visits a URL for uploading files Then she sees an error page stating clearly that she is unauthorized and provides a contact email address
Scenario 3: User gets to the form Given the user is an authorized user And she has authenticated When she visits the URL for uploading files Then she sees the upload form And may proceed to fill it out
Scenario 4: User submits the upload form with files attached Given the user is authenticated and authorized And she has filled out all required fields within the form, including one or more files When she submits the form Then her files are uploaded into the repository services platform And she is redirected to a view that confirms the success of this operation
...
great help in writing acceptance criteria .