File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ func TestCantMergeWorkInProgress(t *testing.T) {
194
194
req := NewRequest (t , "GET" , resp .Header ().Get ("Location" ))
195
195
resp = session .MakeRequest (t , req , http .StatusOK )
196
196
htmlDoc := NewHTMLParser (t , resp .Body )
197
- text := strings .TrimSpace (htmlDoc .doc .Find (".attached. merge-section.no-header .item" ).Last ().Text ())
197
+ text := strings .TrimSpace (htmlDoc .doc .Find (".merge-section > .item" ).Last ().Text ())
198
198
assert .NotEmpty (t , text , "Can't find WIP text" )
199
199
200
200
// remove <strong /> from lang
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ func TestPullCreate_EmptyChangesWithCommits(t *testing.T) {
114
114
resp := session .MakeRequest (t , req , http .StatusOK )
115
115
doc := NewHTMLParser (t , resp .Body )
116
116
117
- text := strings .TrimSpace (doc .doc .Find (".item " ).Text ())
118
- assert .EqualValues (t , "This pull request can be merged automatically." , text )
117
+ text := strings .TrimSpace (doc .doc .Find (".merge-section " ).Text ())
118
+ assert .Contains (t , "This pull request can be merged automatically." , text )
119
119
})
120
120
}
You can’t perform that action at this time.
0 commit comments