File tree 2 files changed +2
-2
lines changed
templates/repo/issue/view_content 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ func TestCantMergeWorkInProgress(t *testing.T) {
159
159
req := NewRequest (t , "GET" , resp .Header ().Get ("Location" ))
160
160
resp = session .MakeRequest (t , req , http .StatusOK )
161
161
htmlDoc := NewHTMLParser (t , resp .Body )
162
- text := strings .TrimSpace (htmlDoc .doc .Find (".merge-section.segment > .text.grey" ).Text ())
162
+ text := strings .TrimSpace (htmlDoc .doc .Find (".attached.header > .text.grey" ). Last ( ).Text ())
163
163
assert .NotEmpty (t , text , "Can't find WIP text" )
164
164
165
165
// remove <strong /> from lang
Original file line number Diff line number Diff line change 46
46
{{else}}red{{end}}"><span class="mega-octicon octicon-git-merge"></span></a>
47
47
<div class="content">
48
48
{{template "repo/pulls/status" .}}
49
- <div class="ui attached merge-section segment">
49
+ <div class="ui {{if not $.LatestCommitStatus}}top attached header{{else}}attached merge-section segment{{end}} ">
50
50
{{if .Issue.PullRequest.HasMerged}}
51
51
<div class="item text purple">
52
52
{{$.i18n.Tr "repo.pulls.has_merged"}}
You can’t perform that action at this time.
0 commit comments