@@ -97,7 +97,7 @@ func TestPullCompare_EnableAllowEditsFromMaintainer(t *testing.T) {
97
97
user2Session := loginUser (t , "user2" )
98
98
resp = user2Session .MakeRequest (t , NewRequest (t , "GET" , fmt .Sprintf ("%s/files" , prURL )), http .StatusOK )
99
99
htmlDoc := NewHTMLParser (t , resp .Body )
100
- nodes := htmlDoc .doc .Find (".diff-file-box[data-new-filename=\" README.md\" ] .diff-file-header-actions .dropdown .menu a" )
100
+ nodes := htmlDoc .doc .Find (".diff-file-box[data-new-filename=\" README.md\" ] .diff-file-header-actions .tippy-target a" )
101
101
if assert .Equal (t , 1 , nodes .Length ()) {
102
102
// there is only "View File" button, no "Edit File" button
103
103
assert .Equal (t , "View File" , nodes .First ().Text ())
@@ -121,7 +121,7 @@ func TestPullCompare_EnableAllowEditsFromMaintainer(t *testing.T) {
121
121
// user2 (admin of repo3) goes to the PR files page again
122
122
resp = user2Session .MakeRequest (t , NewRequest (t , "GET" , fmt .Sprintf ("%s/files" , prURL )), http .StatusOK )
123
123
htmlDoc = NewHTMLParser (t , resp .Body )
124
- nodes = htmlDoc .doc .Find (".diff-file-box[data-new-filename=\" README.md\" ] .diff-file-header-actions .dropdown .menu a" )
124
+ nodes = htmlDoc .doc .Find (".diff-file-box[data-new-filename=\" README.md\" ] .diff-file-header-actions .tippy-target a" )
125
125
if assert .Equal (t , 2 , nodes .Length ()) {
126
126
// there are "View File" button and "Edit File" button
127
127
assert .Equal (t , "View File" , nodes .First ().Text ())
0 commit comments