Skip to content

Commit 8f5c301

Browse files
committed
fix e2e test
1 parent 42bc574 commit 8f5c301

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

e2e/components/menu/menu-page.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ export class MenuPage {
5353

5454
expectMenuLocation(el: ElementFinder, {x,y}: {x: number, y: number}) {
5555
el.getLocation().then((loc) => {
56-
expect(loc.x).toEqual(x);
57-
expect(loc.y).toEqual(y);
56+
// Round the values because we expect the menu overlay to also have been rounded
57+
// to avoid blurriness due to subpixel rendering.
58+
expect(loc.x).toEqual(Math.round(x));
59+
expect(loc.y).toEqual(Math.round(y));
5860
});
5961
}
6062

0 commit comments

Comments
 (0)