Fix flakiness in for segments tests

This commit is contained in:
49lf
2024-05-31 10:14:34 -04:00
committed by Paul R. Tagliamonte
parent cf9123617b
commit 148a682822
2 changed files with 138 additions and 55 deletions

View File

@ -145,6 +145,10 @@ export async function getUtils(page: Page) {
y: bbox.y - angleYOffset,
}
},
getAngle: async (locator: string) => {
const overlay = page.locator(locator)
return Number(await overlay.getAttribute('data-overlay-angle'))
},
getBoundingBox: async (locator: string) =>
page
.locator(locator)