@@ -97,7 +97,7 @@ func TestPullCompare_EnableAllowEditsFromMaintainer(t *testing.T) {
9797		user2Session  :=  loginUser (t , "user2" )
9898		resp  =  user2Session .MakeRequest (t , NewRequest (t , "GET" , fmt .Sprintf ("%s/files" , prURL )), http .StatusOK )
9999		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" )
101101		if  assert .Equal (t , 1 , nodes .Length ()) {
102102			// there is only "View File" button, no "Edit File" button 
103103			assert .Equal (t , "View File" , nodes .First ().Text ())
@@ -121,7 +121,7 @@ func TestPullCompare_EnableAllowEditsFromMaintainer(t *testing.T) {
121121		// user2 (admin of repo3) goes to the PR files page again 
122122		resp  =  user2Session .MakeRequest (t , NewRequest (t , "GET" , fmt .Sprintf ("%s/files" , prURL )), http .StatusOK )
123123		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" )
125125		if  assert .Equal (t , 2 , nodes .Length ()) {
126126			// there are "View File" button and "Edit File" button 
127127			assert .Equal (t , "View File" , nodes .First ().Text ())
0 commit comments