Fix tests

This commit is contained in:
Johannes Marbach
2026-10-05 08:13:58 +02:00
parent 096aaac9f3
commit 89567726f8
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -92,6 +92,12 @@ export async function expectWithin(
outer: Locator,
): Promise<void> {
await expect(inner).toBeVisible();
// Wait for animations to settle.
await inner.evaluate(async (element) => {
for (const animation of element.getAnimations({ subtree: true }))
await animation.finished;
});
const innerBox = await inner.boundingBox();
const outerBox = await outer.boundingBox();
if (innerBox === null || outerBox === null)