mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	fix pull view ui merge section (#7335)
* fix pull view ui merge section * fix tests * fix tests
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							9c6af9d2bb
						
					
				
				
					commit
					1772c6b94d
				
			@@ -159,7 +159,7 @@ func TestCantMergeWorkInProgress(t *testing.T) {
 | 
			
		||||
		req := NewRequest(t, "GET", resp.Header().Get("Location"))
 | 
			
		||||
		resp = session.MakeRequest(t, req, http.StatusOK)
 | 
			
		||||
		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")
 | 
			
		||||
 | 
			
		||||
		// remove <strong /> from lang
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user