diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-07-08 11:19:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-08 05:19:00 +0200 |
commit | 6375419468edc95fdfac94aac3b0e10b23743557 (patch) | |
tree | e104617051a314fa33e62ebcf7c149d0d0434b82 /tests | |
parent | e0a780d75b79233ceb97116b9ae8563a9942aff9 (diff) | |
download | gitea-6375419468edc95fdfac94aac3b0e10b23743557.tar.gz gitea-6375419468edc95fdfac94aac3b0e10b23743557.zip |
Newly pushed branches hints on repository home page (#25715)
This PR will display a pull request creation hint on the repository home
page when there are newly created branches with no pull request. Only
the recent 6 hours and 2 updated branches will be displayed.
Inspired by #14003
Replace #14003
Resolves #311
Resolves #13196
Resolves #23743
co-authored by @kolaente
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/repo_branch_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/repo_branch_test.go b/tests/integration/repo_branch_test.go index c56aa43c51..91674ddc82 100644 --- a/tests/integration/repo_branch_test.go +++ b/tests/integration/repo_branch_test.go @@ -120,9 +120,9 @@ func testCreateBranches(t *testing.T, giteaURL *url.URL) { req := NewRequest(t, "GET", redirectURL) resp := session.MakeRequest(t, req, http.StatusOK) htmlDoc := NewHTMLParser(t, resp.Body) - assert.Equal(t, - test.FlashMessage, + assert.Contains(t, strings.TrimSpace(htmlDoc.doc.Find(".ui.message").Text()), + test.FlashMessage, ) } } |