Skip to content

Commit

Permalink
Fix flaky e2e tests (#19038)
Browse files Browse the repository at this point in the history
* fix lineage flaky tests

* fix glossary flakiness
  • Loading branch information
karanh37 authored Dec 19, 2024
1 parent 7d962d9 commit 9a76b07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,9 @@ export const approveTagsTask = async (
await taskResolve;

await redirectToHomePage(page);
const glossaryTermsResponse = page.waitForResponse('/api/v1/glossaryTerms*');
await sidebarClick(page, SidebarItem.GLOSSARY);
await glossaryTermsResponse;
await selectActiveGlossary(page, entity.data.displayName);

const tagVisibility = await page.isVisible(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,9 @@ export const dragAndDropNode = async (
await page.hover(originSelector);
await page.mouse.down();
const box = (await destinationElement.boundingBox())!;
const x = (box.x + box.width / 2) * 0.25; // 0.25 as zoom factor
const y = (box.y + box.height / 2) * 0.25; // 0.25 as zoom factor
await page.mouse.move(x, y);
await destinationElement.hover();
const x = box.x + 250;
const y = box.y + box.height / 2;
await page.mouse.move(x, y, { steps: 20 });
await page.mouse.up();
};

Expand Down

0 comments on commit 9a76b07

Please sign in to comment.