chore: re-enable tests for Firefox related to fixed Input.dispatchMouseEvent issues (#7776)
Issues: #7115
This commit is contained in:
parent
9f9b4ed72a
commit
4c3caaa3f9
@ -238,8 +238,7 @@ describe('Page.click', function () {
|
|||||||
)
|
)
|
||||||
).toBe('clicked');
|
).toBe('clicked');
|
||||||
});
|
});
|
||||||
// See https://github.com/puppeteer/puppeteer/issues/7175
|
it('should double click the button', async () => {
|
||||||
itFailsFirefox('should double click the button', async () => {
|
|
||||||
const { page, server } = getTestState();
|
const { page, server } = getTestState();
|
||||||
|
|
||||||
await page.goto(server.PREFIX + '/input/button.html');
|
await page.goto(server.PREFIX + '/input/button.html');
|
||||||
@ -292,7 +291,7 @@ describe('Page.click', function () {
|
|||||||
// This await should not hang.
|
// This await should not hang.
|
||||||
await page.click('a');
|
await page.click('a');
|
||||||
});
|
});
|
||||||
itFailsFirefox('should click the button inside an iframe', async () => {
|
it('should click the button inside an iframe', async () => {
|
||||||
const { page, server } = getTestState();
|
const { page, server } = getTestState();
|
||||||
|
|
||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
@ -328,16 +327,12 @@ describe('Page.click', function () {
|
|||||||
await frame.click('button');
|
await frame.click('button');
|
||||||
expect(await frame.evaluate(() => globalThis.result)).toBe('Clicked');
|
expect(await frame.evaluate(() => globalThis.result)).toBe('Clicked');
|
||||||
});
|
});
|
||||||
itFailsFirefox(
|
it('should click the button with deviceScaleFactor set', async () => {
|
||||||
'should click the button with deviceScaleFactor set',
|
|
||||||
async () => {
|
|
||||||
const { page, server } = getTestState();
|
const { page, server } = getTestState();
|
||||||
|
|
||||||
await page.setViewport({ width: 400, height: 400, deviceScaleFactor: 5 });
|
await page.setViewport({ width: 400, height: 400, deviceScaleFactor: 5 });
|
||||||
expect(await page.evaluate(() => window.devicePixelRatio)).toBe(5);
|
expect(await page.evaluate(() => window.devicePixelRatio)).toBe(5);
|
||||||
await page.setContent(
|
await page.setContent('<div style="width:100px;height:100px">spacer</div>');
|
||||||
'<div style="width:100px;height:100px">spacer</div>'
|
|
||||||
);
|
|
||||||
await utils.attachFrame(
|
await utils.attachFrame(
|
||||||
page,
|
page,
|
||||||
'button-test',
|
'button-test',
|
||||||
@ -347,6 +342,5 @@ describe('Page.click', function () {
|
|||||||
const button = await frame.$('button');
|
const button = await frame.$('button');
|
||||||
await button.click();
|
await button.click();
|
||||||
expect(await frame.evaluate(() => globalThis.result)).toBe('Clicked');
|
expect(await frame.evaluate(() => globalThis.result)).toBe('Clicked');
|
||||||
}
|
});
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
@ -258,7 +258,7 @@ describe('ElementHandle specs', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('ElementHandle.hover', function () {
|
describe('ElementHandle.hover', function () {
|
||||||
itFailsFirefox('should work', async () => {
|
it('should work', async () => {
|
||||||
const { page, server } = getTestState();
|
const { page, server } = getTestState();
|
||||||
|
|
||||||
await page.goto(server.PREFIX + '/input/scrollable.html');
|
await page.goto(server.PREFIX + '/input/scrollable.html');
|
||||||
|
@ -71,7 +71,7 @@ describe('Mouse', function () {
|
|||||||
expect(event.isTrusted).toBe(true);
|
expect(event.isTrusted).toBe(true);
|
||||||
expect(event.button).toBe(0);
|
expect(event.button).toBe(0);
|
||||||
});
|
});
|
||||||
itFailsFirefox('should resize the textarea', async () => {
|
it('should resize the textarea', async () => {
|
||||||
const { page, server } = getTestState();
|
const { page, server } = getTestState();
|
||||||
|
|
||||||
await page.goto(server.PREFIX + '/input/textarea.html');
|
await page.goto(server.PREFIX + '/input/textarea.html');
|
||||||
@ -87,7 +87,7 @@ describe('Mouse', function () {
|
|||||||
expect(newDimensions.width).toBe(Math.round(width + 104));
|
expect(newDimensions.width).toBe(Math.round(width + 104));
|
||||||
expect(newDimensions.height).toBe(Math.round(height + 104));
|
expect(newDimensions.height).toBe(Math.round(height + 104));
|
||||||
});
|
});
|
||||||
itFailsFirefox('should select the text with mouse', async () => {
|
it('should select the text with mouse', async () => {
|
||||||
const { page, server } = getTestState();
|
const { page, server } = getTestState();
|
||||||
|
|
||||||
await page.goto(server.PREFIX + '/input/textarea.html');
|
await page.goto(server.PREFIX + '/input/textarea.html');
|
||||||
@ -220,9 +220,7 @@ describe('Mouse', function () {
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
// @see https://crbug.com/929806
|
// @see https://crbug.com/929806
|
||||||
itFailsFirefox(
|
it('should work with mobile viewports and cross process navigations', async () => {
|
||||||
'should work with mobile viewports and cross process navigations',
|
|
||||||
async () => {
|
|
||||||
const { page, server } = getTestState();
|
const { page, server } = getTestState();
|
||||||
|
|
||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
@ -237,6 +235,5 @@ describe('Mouse', function () {
|
|||||||
await page.mouse.click(30, 40);
|
await page.mouse.click(30, 40);
|
||||||
|
|
||||||
expect(await page.evaluate('result')).toEqual({ x: 30, y: 40 });
|
expect(await page.evaluate('result')).toEqual({ x: 30, y: 40 });
|
||||||
}
|
});
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user