aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/setting_test.go
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2023-05-06 10:04:55 -0400
committerGitHub <noreply@github.com>2023-05-06 22:04:55 +0800
commit4daf40505a5f89747982ddd2f1df2a4001720846 (patch)
tree7d4fa0818138bf80c4e28d81bd7ef3fb70b7f0ee /tests/integration/setting_test.go
parent46679554d01b0475b4339fb3c5fec96da3a7e202 (diff)
downloadgitea-4daf40505a5f89747982ddd2f1df2a4001720846.tar.gz
gitea-4daf40505a5f89747982ddd2f1df2a4001720846.zip
Sort users and orgs on explore by recency by default (#24279)
This gives more "freshness" to the explore page. So it's not just the same X users on the explore page by default, now it matches the same sort as the repos on the explore page. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'tests/integration/setting_test.go')
-rw-r--r--tests/integration/setting_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/setting_test.go b/tests/integration/setting_test.go
index cb8248e6e2..a824bd7f2f 100644
--- a/tests/integration/setting_test.go
+++ b/tests/integration/setting_test.go
@@ -20,7 +20,7 @@ func TestSettingShowUserEmailExplore(t *testing.T) {
setting.UI.ShowUserEmail = true
session := loginUser(t, "user2")
- req := NewRequest(t, "GET", "/explore/users")
+ req := NewRequest(t, "GET", "/explore/users?sort=alphabetically")
resp := session.MakeRequest(t, req, http.StatusOK)
htmlDoc := NewHTMLParser(t, resp.Body)
assert.Contains(t,
@@ -30,7 +30,7 @@ func TestSettingShowUserEmailExplore(t *testing.T) {
setting.UI.ShowUserEmail = false
- req = NewRequest(t, "GET", "/explore/users")
+ req = NewRequest(t, "GET", "/explore/users?sort=alphabetically")
resp = session.MakeRequest(t, req, http.StatusOK)
htmlDoc = NewHTMLParser(t, resp.Body)
assert.NotContains(t,