Search Regression Test

User Story

  • As a: developer,
  • I want: search tests
  • so that: when I update code, I can run this test and ensure that none of my changes introduced an error into that those modules.

Functional Requirements

The test must perform the following, in order, any errors can result in the test ending

  1. Open the landing page (having no cookies set)
  2. Click on search bar and type "1984"
    • check that you were redirected to the search page
    • Check that the search input has the value "1984"
    • Check that the first book is 1984 book by George Orwell
  3. Click on search bar and type "sdfgsdfgsdfgsdfgdsfgsfgsdfgsdfg"
    • check that you were redirected to the search page
    • Check that the search input has the value "sdfgsdfgsdfgsdfgdsfgsfgsdfgsdfg"
    • Check that no books are listed

Description

This test will allow us to make sure that the search functionality works.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information