Skip to content

Commit 7cd0fbf

Browse files
committed
fix tests
1 parent 2cbd54b commit 7cd0fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integrations/pull_merge_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func TestCantMergeWorkInProgress(t *testing.T) {
159159
req := NewRequest(t, "GET", resp.Header().Get("Location"))
160160
resp = session.MakeRequest(t, req, http.StatusOK)
161161
htmlDoc := NewHTMLParser(t, resp.Body)
162-
text := strings.TrimSpace(htmlDoc.doc.Find(".attached.header > .text.grey").Text())
162+
text := strings.TrimSpace(htmlDoc.doc.Find(".attached.header > .text.grey").Last().Text())
163163
assert.NotEmpty(t, text, "Can't find WIP text")
164164

165165
// remove <strong /> from lang

0 commit comments

Comments
 (0)