mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-14 13:22:37 +00:00
test(app): wait for the focus hint padding before checking overlap
This commit is contained in:
@@ -103,7 +103,8 @@ for (const layout of FRENCH_LAYOUTS) {
|
||||
|
||||
const hint = page.getByText(/pour saisir$/).first();
|
||||
await expect(hint).toBeVisible();
|
||||
expect(await placeholderOverlaps(input, hint)).toBe(false);
|
||||
// The input takes the hint's width on the render after the hint lays out.
|
||||
await expect.poll(() => placeholderOverlaps(input, hint)).toBe(false);
|
||||
} finally {
|
||||
await agent.cleanup();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user