There are x2 support search instances in Calypso.
If you enter a search into the "My Home" version and then switch to another Page and open the "FAB" version the search query is retained but the search results are not persisted.
We should ensure that if there are results for the current query, then same results should be shown between instances.
This is as per @jancavan's feedback.
Whatever the outcome we should update the e2e tests to cover the scenario.
Podcast
. Wait for results to load.Pages
page (or any other page that is not "My Home").The search UI should contain the query from the "other" instance and the results should be the same.
No additional search query should be fired off.
The results were different for the same query.
cc @retrofox
@getdave I can't reproduce this bug. Although it records the event, it happens when the popover opens (calypso_inlinehelp_show
) which is correct.
Also, not totally sure about resetting the query. Issue or Feature?
@jancavan Interested in your perspective here. Is this a bug or a feature?
Interested in your perspective here. Is this a bug or a feature?
This is a bug because the results are different.
I type in domain
in Customer Home:
I navigate to a different page, open up the FAB, and get different results (default links):
If I click on the search box within the FAB and press enter, nothing happens. I have to clear my query first to get relevant results.
I don't think we should reset the query, but we should offer continuity instead.
@getdave @retrofox
Thanks, Jan.
This is a bug because the results are different.
:this: is a winner.
I don't think we should reset the query, but we should offer continuity instead.
The thing is the state retains the query but doesn't retain the search results. Making the results persistent will fix the issue.
Updated in response to @jancavan's feedback.
I noticed this other bug in the Customer Home Help card. To repro:
I was expecting it to do another search, albeit only repopulating the same results (since I did not change the query). But instead, it opened up the modal from the item I previously clicked. It's stuck on the focus state.
Most helpful comment
This is a bug because the results are different.
I type in
domain
in Customer Home:I navigate to a different page, open up the FAB, and get different results (default links):
If I click on the search box within the FAB and press enter, nothing happens. I have to clear my query first to get relevant results.
I don't think we should reset the query, but we should offer continuity instead.
@getdave @retrofox