We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42bc574 commit 8f5c301Copy full SHA for 8f5c301
e2e/components/menu/menu-page.ts
@@ -53,8 +53,10 @@ export class MenuPage {
53
54
expectMenuLocation(el: ElementFinder, {x,y}: {x: number, y: number}) {
55
el.getLocation().then((loc) => {
56
- expect(loc.x).toEqual(x);
57
- expect(loc.y).toEqual(y);
+ // Round the values because we expect the menu overlay to also have been rounded
+ // to avoid blurriness due to subpixel rendering.
58
+ expect(loc.x).toEqual(Math.round(x));
59
+ expect(loc.y).toEqual(Math.round(y));
60
});
61
}
62
0 commit comments