From fb9d4049d82d2eb2ea6e91874867ecc7064933a9 Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Mon, 11 Feb 2019 14:00:06 -0800 Subject: [PATCH] test(mouse): add failing for test for mobile + cross process navigation (#3951) --- test/mouse.spec.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/mouse.spec.js b/test/mouse.spec.js index 58d4eaa9..68adf923 100644 --- a/test/mouse.spec.js +++ b/test/mouse.spec.js @@ -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}); + }); }); };