Contents

User documents

Background:

  • Given I am a customer with contracts

Scenario: Getting to my documents

@javascript @personas

  • When I click on "My Documents" underneath my username
  • Then I am on the page showing my documents

Scenario: Document overview

@javascript @personas

  • Given I go to the page showing my documents
  • Then my contracts are ordered by the earliest time window
  • And I see the following information for each contract:
    Contract number
    Time window with its start and end
    Inventory pool
    Purpose
    Status
    Link to the contract
    Link to the value list

Scenario: Person taking back

@javascript @personas

  • When I open a contract with returned items from my documents
  • Then the relevant reservations show the person taking back the item in the format "F. Lastname"

Scenario: Opening value list

@javascript @personas

  • Given I go to the page showing my documents
  • And I click the value list link
  • Then the value list opens

Scenario: What I want to see on a value list

@javascript @personas

  • When I open a value list from my documents
  • Then I want to see the following sections in the value list:
    Section
    Date
    Title
    Borrower
    Lender
    List
  • And the models in the value list are sorted alphabetically
  • Then the list contains the following columns:
    Column
    Consecutive number
    Inventory code
    Model name
    End date
    Quantity
    Price
  • Then one line shows the grand total
  • And that shows the totals of the columns:
    Column
    Quantity
    Value

Scenario: Opening a contract

@javascript @personas

  • Given I go to the page showing my documents
  • And I click the contract link
  • Then the contract opens

Scenario: What I want to see on the contract

@javascript @personas

  • When I open a contract from my documents
  • Then I see the contract and it looks like in the manage section

Source: features/borrow/user_documents.feature at commit eb240d9e, Leihs (GPL license).