From 79118aae404e22d783f42ec7adfcae29be875f05 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sun, 28 May 2023 16:55:33 +0800 Subject: [PATCH] fix --- modules/test/utils.go | 5 ++++ options/locale/locale_en-US.ini | 2 -- routers/common/errpage.go | 2 +- routers/common/errpage_test.go | 41 ++++++++++++++++++++++++++ templates/admin/config.tmpl | 10 ------- tests/integration/admin_config_test.go | 23 +++++++++++++++ 6 files changed, 70 insertions(+), 13 deletions(-) create mode 100644 routers/common/errpage_test.go create mode 100644 tests/integration/admin_config_test.go diff --git a/modules/test/utils.go b/modules/test/utils.go index 7686d3f289f7..282895eaa90b 100644 --- a/modules/test/utils.go +++ b/modules/test/utils.go @@ -5,9 +5,14 @@ package test import ( "net/http" + "strings" ) // RedirectURL returns the redirect URL of a http response. func RedirectURL(resp http.ResponseWriter) string { return resp.Header().Get("Location") } + +func IsNormalPageCompleted(s string) bool { + return strings.Contains(s, `