Sprint 2 | Admin | Book C.R.U.D | Book File Form
Books must be divided in:
- Title
- Author
- Cover (image)
- Description/synopsis
Chapters must be divided in:
- Title
- Number
- Pages - start page and end page
Scenario: Add a new book, according to VIR's database schema
Given I am a VIR Admin
When I upload a new .pdf file of a new book
And I choose the book's genre category
Then the book should be saved in the database with the associated category_id
And be divided in title, author, cover image and total pages correctly into the database
Scenario: Chapter information must be identified by VIR
Given I am a VIR Admin
When I upload a new .pdf file of a new book
And its contents are divided into numbered chapters
Then VIR must allocate the chapters' title, number, start page and end page correctly into the database