Opened from disk

This site is meant to be served, so its folder tree and search do not work when a page is opened from disk. Run ghg serve in the folder of your ghg.toml, or serve the site's folder with any web server, then open the address it gives.

Skip to content
Theme

Feature: Adding a book to the catalogue

Staff add each new book to the catalogue, from its record.

  1. Given a member of staff is signed in
  2. When they add a book with this record:
    json
    {
      "title": "Emma",
      "author": "Jane Austen",
      "year": 1815
    }
  3. Then the book "Emma" is on the shelf

  1. Given a member of staff is signed in
  2. When they add a book with this record:
    text
    Title:  The Hobbit
    Author: J. R. R. Tolkien
      Note: the record keeps its own indentation.
    A line with three backticks: ```
  3. Then the book "The Hobbit" is on the shelf

  1. Given a member of staff is signed in
  2. When they add a book with this record:
    json
    { "title": "" }
  3. Then the record is refused with "A book needs a title."