summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/test/utils.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/test/utils.go b/modules/test/utils.go
index 7686d3f289..282895eaa9 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, `<footer class="page-footer"`) && strings.Contains(s, `</html>`)
+}