webcompat / webcompat.com

Source code for webcompat.com
https://webcompat.com
360 stars 191 forks source link

`site: example.com` results disappear after logging in #1346

Open miketaylr opened 7 years ago

miketaylr commented 7 years ago

Related to #999 feature.

STR 1) go to localhost:5000/issues (log out if necessary) 2) search for site: example.com, note relevant search results 3) click log-in

Expected: Be logged in, still see issues from before

Actual: Be logged in, no results and search input is empty

Note: q=site%253A%2Bexample.com is the search param in this case.

miketaylr commented 7 years ago

Possibly the same bug as #1345, or at least related. cc @MDTsai

miketaylr commented 7 years ago

As part of the fix for this, we should write some generic site: example.com Intern tests, as well as ones that cover this specific log-in and log-out flow:

https://github.com/webcompat/webcompat.com/blob/master/tests/functional/search-auth.js https://github.com/webcompat/webcompat.com/blob/master/tests/functional/search-non-auth.js