mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 07:24:22 +02:00
Refactor LDAP tests (#37274)
Not really fix #37263, just make things better, and easy to catch more clues if it would fail again.
This commit is contained in:
1 parent
0824610e39
commit
af31b9d433
6 files changed
+151
-167
No files matched your search
@@ -404,7 +404,7 @@ func logUnexpectedResponse(t testing.TB, recorder *httptest.ResponseRecorder) {
|
||||
if err != nil {
|
||||
return // probably a non-HTML response
|
||||
}
|
||||
errMsg := htmlDoc.Find(".ui.negative.message").Text()
|
||||
errMsg := htmlDoc.Find(".ui.negative.message:not(.tw-hidden)").Text()
|
||||
if len(errMsg) > 0 {
|
||||
t.Log("A flash error message was found:", errMsg)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user