mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-11-04 04:29:13 +00:00 
			
		
		
		
	Fix flaky e2e tests (#19038)
* fix lineage flaky tests * fix glossary flakiness (cherry picked from commit 9a76b07025fade6285ddcd45819fa93c40fe6806)
This commit is contained in:
		
							parent
							
								
									aa5b6ca939
								
							
						
					
					
						commit
						d5360073c6
					
				@ -1071,7 +1071,9 @@ export const approveTagsTask = async (
 | 
				
			|||||||
  await taskResolve;
 | 
					  await taskResolve;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  await redirectToHomePage(page);
 | 
					  await redirectToHomePage(page);
 | 
				
			||||||
 | 
					  const glossaryTermsResponse = page.waitForResponse('/api/v1/glossaryTerms*');
 | 
				
			||||||
  await sidebarClick(page, SidebarItem.GLOSSARY);
 | 
					  await sidebarClick(page, SidebarItem.GLOSSARY);
 | 
				
			||||||
 | 
					  await glossaryTermsResponse;
 | 
				
			||||||
  await selectActiveGlossary(page, entity.data.displayName);
 | 
					  await selectActiveGlossary(page, entity.data.displayName);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const tagVisibility = await page.isVisible(
 | 
					  const tagVisibility = await page.isVisible(
 | 
				
			||||||
 | 
				
			|||||||
@ -133,10 +133,9 @@ export const dragAndDropNode = async (
 | 
				
			|||||||
  await page.hover(originSelector);
 | 
					  await page.hover(originSelector);
 | 
				
			||||||
  await page.mouse.down();
 | 
					  await page.mouse.down();
 | 
				
			||||||
  const box = (await destinationElement.boundingBox())!;
 | 
					  const box = (await destinationElement.boundingBox())!;
 | 
				
			||||||
  const x = (box.x + box.width / 2) * 0.25; // 0.25 as zoom factor
 | 
					  const x = box.x + 250;
 | 
				
			||||||
  const y = (box.y + box.height / 2) * 0.25; // 0.25 as zoom factor
 | 
					  const y = box.y + box.height / 2;
 | 
				
			||||||
  await page.mouse.move(x, y);
 | 
					  await page.mouse.move(x, y, { steps: 20 });
 | 
				
			||||||
  await destinationElement.hover();
 | 
					 | 
				
			||||||
  await page.mouse.up();
 | 
					  await page.mouse.up();
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user