Fix flakiness in for segments tests
This commit is contained in:
committed by
Paul R. Tagliamonte
parent
cf9123617b
commit
148a682822
@ -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)
|
||||
|
Reference in New Issue
Block a user