|
|
@ -159,7 +159,7 @@ func TestCantMergeWorkInProgress(t *testing.T) { |
|
|
|
req := NewRequest(t, "GET", resp.Header().Get("Location")) |
|
|
|
req := NewRequest(t, "GET", resp.Header().Get("Location")) |
|
|
|
resp = session.MakeRequest(t, req, http.StatusOK) |
|
|
|
resp = session.MakeRequest(t, req, http.StatusOK) |
|
|
|
htmlDoc := NewHTMLParser(t, resp.Body) |
|
|
|
htmlDoc := NewHTMLParser(t, resp.Body) |
|
|
|
text := strings.TrimSpace(htmlDoc.doc.Find(".merge-section.segment > .text.grey").Text()) |
|
|
|
text := strings.TrimSpace(htmlDoc.doc.Find(".attached.header > .text.grey").Last().Text()) |
|
|
|
assert.NotEmpty(t, text, "Can't find WIP text") |
|
|
|
assert.NotEmpty(t, text, "Can't find WIP text") |
|
|
|
|
|
|
|
|
|
|
|
// remove <strong /> from lang
|
|
|
|
// remove <strong /> from lang
|
|
|
|