Education Provider Registry docs

SearchEstablishmentByName

Source feature file: features/search-establishment-by-establishment-name.feature

Summary

Item Value
File features/search-establishment-by-establishment-name.feature
Tags @search
Scenario count 5

Scenarios

Scenario Tags
No Establishment results returned @search-name-no-results
Some Establishment results returned @search-name-multiple-results
Search is case insensitive @search-name-case-insensitive
Establishments with special characters in their name can be searched @search-name-special-character
Establishments with spaces in their name can be searched @search-name-space

Feature Source

@search
Feature: SearchEstablishmentByName
  As a public website visitor
  I want to search for establishments by their name
  So that I can find information about establishments I am interested in

@search-name-no-results
Scenario: No Establishment results returned
  Given an establishment search has been made
  When no establishments match the search term
  Then an error is returned indicating no establishment were found

@search-name-multiple-results
Scenario: Some Establishment results returned
  Given an establishment search has been made
  When one or more establishment names match the search term
  Then the matching estbablishments are returned

@search-name-case-insensitive
Scenario Outline: Search is case insensitive
  Given an establishment named "Greenwood Academy" exists
  When the user searches for "<term>"
  Then the establishment "Greenwood Academy" is returned

  Examples: 
    | term       |
    | "greenwo"  |
    | "GrEENWo   |
    | "GREENWOO" |
    
@search-name-special-character
Scenario: Establishments with special characters in their name can be searched
  Given an establishment named "O'Brien Academy" exists
  When the user searches for "'"
  Then the establishment "O'Brien Academy" is returned

@search-name-space
Scenario: Establishments with spaces in their name can be searched
  Given an establishment named "Sutton Grammar" exists
  When the user searches for " "
  Then the establishment "Sutton Grammar" is returned