You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

admin_config_test.go 521B

1234567891011121314151617181920212223
  1. // Copyright 2023 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package integration
  4. import (
  5. "net/http"
  6. "testing"
  7. "code.gitea.io/gitea/modules/test"
  8. "code.gitea.io/gitea/tests"
  9. "github.com/stretchr/testify/assert"
  10. )
  11. func TestAdminConfig(t *testing.T) {
  12. defer tests.PrepareTestEnv(t)()
  13. session := loginUser(t, "user1")
  14. req := NewRequest(t, "GET", "/admin/config")
  15. resp := session.MakeRequest(t, req, http.StatusOK)
  16. assert.True(t, test.IsNormalPageCompleted(resp.Body.String()))
  17. }