NCIOCPL / drug-dictionary-app

NCI Drug Dictionary Application
2 stars 0 forks source link

Search Results for more than 30 characters #89

Closed VictoriaSunNIH closed 3 years ago

VictoriaSunNIH commented 3 years ago

Issue description

Having more than 30 characters when submitting a contains search is causing issues with our backend, and with search functionality in that even having a term with more than 30 characters leads the user to the "no results found page" even though there might be matching results . We would like the limit the user to 30 characters only

ESTIMATE TBD

What's the expected change?

Users are only allowed to enter 30 characters in the search box, and there is helper text below the input field that says "Please enter up to 30 characters for your search"

What's the current functionality?

Right now, the system breaks for contains searches more than 30 characters

What's the updated acceptance criteria?

Scenario: User attempts search with more than 30 characters
Given that the user is doing a contains search in the search box within the drug dictionary
  Then the user is limited to only 30 characters in the search box
  And the system displays a message below the input box that says "Please enter up to 30 characters for your search."
  When user clicks search
  Then search returns results matching the first 30 characters entered
Scenario: User enters more than 30, then deletes characters to be less than 30
Given that the user is doing a search in the search box within the drug dictionary
  And the user attempts to type more than 30 characters in the search box
  Then the system does not allow users to enter more than 30 characters (the field is limited)
    When user clicks search
    Then the system executes the search on the 30 characters entered

Additional details / screenshot

Styles: Noto Sans Regular 14px #2e2e2e line height: 16px Padding: 30px above, 20px below

Related Tickets