Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR partially implements #1471. As discussed in the issue, I have implemented a way for a user to access their recent searches using browser autocompleting:
As Louise stated in the issue, "this persists across browser refreshes, but is locked to a single browser". This may not be enough functionality to satisfy DataGateway users (i.e. they might want recent searches to be the same across browsers) but given the low code change in this PR, it seems this is a good first step.
I updated the snapshots for the unit tests and tried to write an e2e test but I wasn't able to get the autofill field to complete in Cypress during the test (it would appear if I did the steps manually after the test) so I was unable to write a test for that.
It's rather simple, but it seems to work.
Testing instructions
Add a set up instructions describing how the reviewer should test the code
Agile board tracking
connect to #1471