Contents

Search

Scenario: Searching for contracts by inventory code of an item that is assigned to a contract

@personas

  • Given I am Mike
  • And I search for the inventory code of an item that is in a contract
  • Then I see the contract this item is assigned to in the list of results

Scenario: Searching for a user that has contracts but no longer has access to the current inventory pool

@javascript @personas @browser

  • Given I am Mike
  • And there is a user with contracts who no longer has access to the current inventory pool
  • When I search for that user
  • Then I see all that user's contracts
  • And the name of that user is shown on each contract line
  • And that user's personal details are shown in the tooltip

Scenario: No hand over without approval

@javascript @personas

  • Given I am Pius
  • And there is a user with an unapproved order
  • When I search for that user
  • Then I cannot hand over the unapproved order unless I approve it first

Scenario: No link to show all matching contracts

@javascript @personas

  • Given I am Mike
  • And there is a user with at least 3 and less than 5 contracts
  • When I search for that user
  • Then I see that user's signed and closed contracts
  • Then I don't see a link labeled 'Show all matching contracts'

Scenario: Displaying retired items

@javascript @personas

  • Given I am Mike
  • And there exists a closed contract with a retired item
  • When I search globally after this item with its inventory code
  • Then I see the item in the items container
  • And I hover over the list of items on the contract line
  • Then I see in the tooltip the model name of this item

Scenario: Displaying items from another inventory pool in closed contracts

@javascript @personas @browser

  • Given I am Mike
  • And there exists a closed contract with an item, for which an other inventory pool is responsible and owner
  • When I search globally after this item with its inventory code
  • Then I see the item in the items container
  • And the items container shows the item line with the following information:
    Inventory Code
    Model name
    Responsible inventory pool
  • And I don't see the button group on the item line
  • And I hover over the list of items on the contract line
  • Then I see in the tooltip the model name of this item

Scenario Outline: Showing items' problems in global search

@personas @javascript @browser @problematic

  • Given I am Mike
  • And there is a "<state>" item in my inventory pool
  • When I search globally after this item with its inventory code
  • Then I see the item in the items container
  • And the item line ist marked as "<state>" in red

Examples:

state
Broken
Retired
Incomplete
Unborrowable

Scenario: Checking the 'Models' subsection tab

@personas @javascript @browser

  • Given I am Mike
  • And enough data for "Models" having "search string" exists
  • When I search globally for "search string"
  • Then the search results for "search string" are displayed
  • When I click on the tab named "Models"
  • Then the first page of results is shown
  • And I scroll to the end of the list
  • Then I see all the entries matching "search string" in the "Models"

Scenario: Checking the 'Software' subsection tab

@personas @javascript @browser

  • Given I am Mike
  • And enough data for "Software" having "search string" exists
  • When I search globally for "search string"
  • Then the search results for "search string" are displayed
  • When I click on the tab named "Software"
  • Then the first page of results is shown
  • And I scroll to the end of the list
  • Then I see all the entries matching "search string" in the "Software"

Scenario: Checking the 'Items' subsection tab

@personas @javascript @browser

  • Given I am Mike
  • And enough data for "Items" having "search string" exists
  • When I search globally for "search string"
  • Then the search results for "search string" are displayed
  • When I click on the tab named "Items"
  • Then the first page of results is shown
  • And I scroll to the end of the list
  • Then I see all the entries matching "search string" in the "Items"

Scenario: Checking the 'Licenses' subsection tabs

@personas @javascript @browser

  • Given I am Mike
  • And enough data for "Licenses" having "search string" exists
  • When I search globally for "search string"
  • Then the search results for "search string" are displayed
  • When I click on the tab named "Licenses"
  • Then the first page of results is shown
  • And I scroll to the end of the list
  • Then I see all the entries matching "search string" in the "Licenses"

Scenario: Checking the 'Options' subsection tabs

@personas @javascript @browser

  • Given I am Mike
  • And enough data for "Options" having "search string" exists
  • When I search globally for "search string"
  • Then the search results for "search string" are displayed
  • When I click on the tab named "Options"
  • Then the first page of results is shown
  • And I scroll to the end of the list
  • Then I see all the entries matching "search string" in the "Options"

Scenario: Checking the 'Users' subsection tabs

@personas @javascript @browser

  • Given I am Mike
  • And enough data for "Users" having "search string" exists
  • When I search globally for "search string"
  • Then the search results for "search string" are displayed
  • When I click on the tab named "Users"
  • Then the first page of results is shown
  • And I scroll to the end of the list
  • Then I see all the entries matching "search string" in the "Users"

Scenario: Checking the 'Contracts' subsection tabs

@personas @javascript @browser

  • Given I am Mike
  • And enough data for "Contracts" having "search string" exists
  • When I search globally for "search string"
  • Then the search results for "search string" are displayed
  • When I click on the tab named "Contracts"
  • Then the first page of results is shown
  • And I scroll to the end of the list
  • Then I see all the entries matching "search string" in the "Contracts"

Scenario: Checking the 'Orders' subsection tabs

@personas @javascript @browser

  • Given I am Mike
  • And enough data for "Orders" having "search string" exists
  • When I search globally for "search string"
  • Then the search results for "search string" are displayed
  • When I click on the tab named "Orders"
  • Then the first page of results is shown
  • And I scroll to the end of the list
  • Then I see all the entries matching "search string" in the "Orders"

Source: features/manage/search.feature at commit eb240d9e, Leihs (GPL license).