NCIOCPL / clinical-trials-search-app

Clinical Trial Search Front-end
1 stars 6 forks source link

"Try a new search" is retaining values in Cancer Type/Condition and Keywords/Phrases field #539

Closed alinai closed 2 years ago

alinai commented 2 years ago

Issue description

If we search with "penguin" in Cancer Type/Condition field on Basic CTS page or Keywords/Phrases field on Advanced CTS page , we get No Trial Found page. When we click the link "Try a new search" in the No Trials found page, the Cancer Type/Condition field and Keywords/Phrases field retains its value on react-app-dev. Prod does not retain its value.

ESTIMATE TBD

Steps to reproduce the issue

  1. Go to https://react-app-dev.cancer.gov/clinical-trials-search-app/develop/
  2. Type "penguin" in the Cancer type/Keyword field
  3. Perform search by clicking the "Find Trials" button.
  4. No trials found page is loaded.
  5. Click "Try a new search" link.
  6. We will see that Cancer Type/Keyword field retains its value on Basic CTS page.
  7. Go to https://react-app-dev.cancer.gov/clinical-trials-search-app/develop/advanced
  8. Type "penguin" in the Keywords/Phrases field.
  9. Perform search by clicking the "Find Trials" button.
  10. No trials found page is loaded.
  11. Click "Try a new search" link.
  12. We will see that Keywords/Phrases field retains its value on Advanced CTS page.

What's the expected result?

What's the actual result?

Additional details / screenshot

Related Tickets