Skip to content

Commit

Permalink
test(mouse): add failing for test for mobile + cross process navigati…
Browse files Browse the repository at this point in the history
…on (#3951)
  • Loading branch information
JoelEinbinder authored and aslushnikov committed Feb 11, 2019
1 parent 63ea805 commit fb9d404
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/mouse.spec.js
Expand Up @@ -136,5 +136,20 @@ module.exports.addTests = function({testRunner, expect, FFOX}) {
[200, 300]
]);
});
// @see https://crbug.com/929806
xit('should work with mobile viewports and cross process navigations', async({page, server}) => {
await page.goto(server.EMPTY_PAGE);
await page.setViewport({width: 360, height: 640, isMobile: true});
await page.goto(server.CROSS_PROCESS_PREFIX + '/mobile.html');
await page.evaluate(() => {
document.addEventListener('click', event => {
window.result = {x: event.clientX, y: event.clientY};
});
});

await page.mouse.click(30, 40);

expect(await page.evaluate('result')).toEqual({x: 30, y: 40});
});
});
};

0 comments on commit fb9d404

Please sign in to comment.