Add test which reproduces the hanging mouse.click() behavior (#207)

This patch adds a disabled test to reproduce the mouse.click() hanging
bug.

References #206.
This commit is contained in:
Andrey Lushnikov 2017-08-03 22:10:06 -07:00 committed by JoelEinbinder
parent 2d650d0301
commit 13327f3303

View File

@ -1159,6 +1159,11 @@ describe('Page', function() {
await page.press('a');
expect(await page.evaluate(() => window.lastEvent.repeat)).toBe(true);
}));
xit('should click links which cause navigation', SX(async function() {
await page.setContent(`<a href="${EMPTY_PAGE}">empty.html</a>`);
// This await should not hang.
await page.click('a');
}));
function dimensions() {
let rect = document.querySelector('textarea').getBoundingClientRect();
return {