Logo: Relish

  1. Sign in

Project: Borrow-manage-2

Model list

Background
Given
personas dump is loaded
Scenarios
  • @borrow_model_list
  • @rack
Model list overview
Given
I am Normin
When
I am listing models
Then
I see the explorative search
And
I scroll to the end of the list
And
I see the models of the selected category
And
I see the sort options
And
I see the inventory pool selector
And
I see filters for start and end date
  • @borrow_model_list
  • @rack
A single model list entry
Given
I am Normin
When
I am listing models
And
a single model list entry contains:
Image
Model name
Manufacturer
Selection button
  • @borrow_model_list
  • @flapping
Scrolling the model list
Given
I am Normin
And
I see a model list that can be scrolled
When
I scroll to the end of the currently loaded list
Then
the next block of models is loaded and shown
When
I scroll to the end of the list
Then
all models of the chosen category have been loaded and shown
  • @borrow_model_list
Sorting the model list
Given
I am Normin
And
I am listing models
When
I sort the list by "Model, ascending"
Then
the list is sorted by "Model", "ascending"
When
I sort the list by "Model, descending"
Then
the list is sorted by "Model", "descending"
When
I sort the list by "Manufacturer, ascending"
Then
the list is sorted by "Manufacturer", "ascending"
When
I sort the list by "Manufacturer, descending"
Then
the list is sorted by "Manufacturer", "descending"
  • @borrow_model_list
  • @rack
Standard settings for lending period
Given
I am Normin
And
I am listing models
Then
no lending period is set
  • @borrow_model_list
Inventory pool selection cannot be empty
Given
I am Normin
When
I am listing models
Then
I cannot deselect all the inventory pools in the inventory pool selector
  • @borrow_model_list
  • @rack
Sorting the inventory pool selection
Given
I am Normin
When
I am listing models
Then
the inventory pool selection is ordered alphabetically
  • @borrow_model_list
Inventory pool selection "select all"
Given
I am Normin
When
I am listing models
And
I select a specific inventory pool from the choices offered
And
I select all inventory pools using the "All inventory pools" function
Then
all inventory pools are selected
And
the inventory pool selector is still expanded
And
the model list contains models from all inventory pools
  • @borrow_model_list
Inventory pool selection can never be empty
Given
I am Normin
When
I am listing models
Then
I cannot deselect all the inventory pools in the inventory pool selector
  • @borrow_model_list
  • @flapping
Specifying the start date of an order
Given
I am Petra
When
I am listing models and some of them are unavailable
And
I choose a start date
Then
the end date is automatically set to the next day
And
the list is filtered by models that are available in that time frame
  • @borrow_model_list
Specifying the end date of an order
Given
I am Petra
When
I am listing models and some of them are unavailable
And
I choose an end date
Then
the start date is automatically set to the previous day
And
the list is filtered by models that are available in that time frame
  • @borrow_model_list
Removing the lending time frame
Given
I am Petra
When
I am listing models and some of them are unavailable
And
I choose a start date
And
I choose an end date
When
I blank the start and end date
Then
the list is not filtered by lending time frame
  • @borrow_model_list
Date picker for lending time frame
Given
I am Normin
And
I am listing models
Then
I can also use a date picker to specify start and end date instead of entering them by hand
  • @borrow_model_list
  • @flapping
Searching for a model
Given
I am Normin
And
I am listing models
When
I enter a search term
And
I press the Enter key
Then
those models are shown whose names or manufacturers match the search term
  • @borrow_model_list
Hovering over models
Given
I am Normin
And
there is a model with images, description and properties
And
the model list contains that model
When
I hover over that model
Then
I see the model's name, images, description, list of properties
  • @borrow_model_list
  • @rack
Default values for inventory pool selection
Given
I am Normin
When
I am listing models
Then
all inventory pools are selected
And
the model list shows models from all inventory pools
And
the filter is labeled "All inventory pools"
  • @borrow_model_list
Selecting just one inventory pool
Given
I am Normin
And
I am listing models
When
I select a specific inventory pool from the choices offered
Then
all other inventory pools are deselected
And
the model list shows only models of this inventory pool
And
the inventory pool selector is still expanded
And
the filter shows the name of the selected inventory pool
  • @borrow_model_list
Deselecting a single inventory pool
Given
I am Normin
And
I am listing models
When
I deselect some inventory pools
Then
the model list is filtered by the left over inventory pools
And
the inventory pool selector is still expanded
And
the filter shows the count of selected inventory pools
  • @borrow_model_list
  • @flapping
Deselecting all but one inventory pool
Given
I am Normin
And
I am listing models
When
I deselect all but one inventory pool
Then
the model list is filtered by the left over inventory pool
And
the inventory pool selector is still expanded
And
the filter shows the name of the inventory pool that is left
  • @borrow_model_list
  • @flapping
Resetting everything
Given
I am Normin
And
I am listing models
And
filters are being applied
And
the button "Reset all filters" is visible
When
I reset all filters
Then
all inventory pools are selected again in the inventory pool filter
And
start and end date are both blank
And
the list is sorted by "Model", "ascending"
And
the search query field is blank
And
the model list is unfiltered
And
the button "Reset all filters" is not visible
  • @borrow_model_list
Reset all button disappears automatically when filters were set to their default positions by hand
Given
I am Normin
And
I am listing models
And
filters are being applied
And
the button "Reset all filters" is visible
When
I set all filters to their default values by hand
Then
the button "Reset all filters" is not visible
  • @borrow_model_list
Persistence of filter settings between navigation
Given
I am Normin
And
I am listing models
And
I see the explorative search
When
I enter a search term
And
I choose a start date
And
I choose a end date
And
I select a specific inventory pool from the choices offered
And
I select a sorting option
And
I click on a category from explorative search
Then
I see the models of the selected category
And
the filter has previously entered search term
And
the filter has previously selected start date
And
the filter has previously selected end date
And
the filter has previously selected inventory pool
And
the filter has previously selected sorting option
When
I switch to another language
Then
the filter has previously selected start date
And
the filter has previously selected end date
Then
I switch back to original language
When
I visit the start page
And
I click on a root category
Then
I see the models of the selected category
And
the filter has previously entered search term
And
the filter has previously selected start date
And
the filter has previously selected end date
And
the filter has previously selected inventory pool
And
the filter has previously selected sorting option
When
I reset all filters
Then
all inventory pools are selected again in the inventory pool filter
And
start and end date are both blank
And
the list is sorted by "Model", "ascending"
And
the search query field is blank
And
the model list is unfiltered
And
the button "Reset all filters" is not visible

Last published almost 2 years ago by mkmit.