diff --git a/tests/integration/admin_repo_test.go b/tests/integration/admin_repo_test.go index 3c3b8a62d9..dd5b8f5d13 100644 --- a/tests/integration/admin_repo_test.go +++ b/tests/integration/admin_repo_test.go @@ -16,12 +16,12 @@ func TestAdminViewRepos(t *testing.T) { defer tests.PrepareTestEnv(t)() session := loginUser(t, "user1") - req := NewRequest(t, "GET", "/admin/repos") + req := NewRequest(t, "GET", "/admin/repos?q=&sort=reversealphabetically") resp := session.MakeRequest(t, req, http.StatusOK) htmlDoc := NewHTMLParser(t, resp.Body) - // Should be 50 rows of repositories rendered... + // Should be 50 rows of repositories rendered; this is the page size, and there are 65 repos in-fixture. assert.Equal(t, 50, htmlDoc.Find("table tbody tr").Length()) // Check for a specific repo link to see if it is rendered correctly