NCIOCPL / sitewide-search-app

App for Sitewide Search results pages
2 stars 0 forks source link

Story: Option to display 20 or 50 results #3

Closed VictoriaSunNIH closed 4 years ago

VictoriaSunNIH commented 4 years ago

As a user, I would like the option to display more search results on the results page, so I can browse through more pages at a time.

ESTIMATE 3

Acceptance Criteria

Scenario: English option to display 20 or 50 results
  Given user navigates to "/?swKeyword=cancer"
  Then the system returns the results page for cancer
  Then the results are displayed 
    Then below the last result on the page, a dropdown box appears, allowing users to choose between 20 or 50 results displayed per page
      And the text “Show” appears before the dropdown box
      And the dropdown box defaults to 20 
      And the text “results per page.” appears after the dropdown box.a pager is displayed at the bottom of the search results listing
      And the option appears on the same line as the pager
      When the user selects “50” from the dropdown box
      Then the page refreshes and displays 50 results 
Examples:
|url|
|cancer.gov |
|dceg.cancer.gov|
| cancer.gov/nano|
| cancer.gov/pediatric-adult-rare-tumor|
| cancer.gov/rare-brain-spine-tumor/|
Scenario: Spanish option to display 20 or 50 results
  Given language is set to “es”
  Given user navigates to "/?swKeyword=cancer"
  Then the system returns the results page for cancer
  Then the results are displayed 
    Then below the last result on the page, a dropdown box appears, allowing users to choose between 20 or 50 results displayed per page
      And the text “Mostrar” appears before the dropdown box
      And the dropdown box defaults to 20 
      And the text “resultados por página..” appears after the dropdown box.a pager is displayed at the bottom of the search results listing
      And the option appears on the same line as the pager
      When the user selects “50” from the dropdown box
      Then the page refreshes and displays 50 results 
Examples:
|url|
|cancer.gov/espanol |
| cancer.gov/rare-brain-spine-tumor/espanol|
Scenario: Analytics [TBD - @bryanpizzillo to add details here if needed]

Resources:

Solution

Prerequisites

Tasks

Technical Notes

amydugan commented 4 years ago

Included in PR for the Pager