feat(firefox): roll Firefox & Firefox Beta (#20670)
Fixes #19685 Fixes #20093
This commit is contained in:
parent
86dd29a15e
commit
1120b82ba2
|
|
@ -21,13 +21,13 @@
|
|||
},
|
||||
{
|
||||
"name": "firefox",
|
||||
"revision": "1375",
|
||||
"revision": "1376",
|
||||
"installByDefault": true,
|
||||
"browserVersion": "109.0"
|
||||
},
|
||||
{
|
||||
"name": "firefox-beta",
|
||||
"revision": "1377",
|
||||
"revision": "1378",
|
||||
"installByDefault": false,
|
||||
"browserVersion": "110.0b7"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -649,7 +649,7 @@ export module Protocol {
|
|||
};
|
||||
export type dispatchTapEventReturnValue = void;
|
||||
export type dispatchMouseEventParameters = {
|
||||
type: string;
|
||||
type: ("mousedown"|"mousemove"|"mouseup");
|
||||
button: number;
|
||||
x: number;
|
||||
y: number;
|
||||
|
|
|
|||
10
tests/assets/counter.html
Normal file
10
tests/assets/counter.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<button>increment</button>
|
||||
<h1>count: 0</h1>
|
||||
<script>
|
||||
window.count = 0;
|
||||
document.querySelector('button').addEventListener('click', () => {
|
||||
++window.count;
|
||||
document.querySelector('h1').textContent = `count: ${window.count}`;
|
||||
});
|
||||
</script>
|
||||
|
|
@ -38,6 +38,23 @@ it('should click button inside frameset', async ({ page, server }) => {
|
|||
expect(await frame.evaluate('result')).toBe('Clicked');
|
||||
});
|
||||
|
||||
it('should issue clicks in parallel in page and popup', async ({ page, server }) => {
|
||||
await page.goto(server.PREFIX + '/counter.html');
|
||||
const [popup] = await Promise.all([
|
||||
page.waitForEvent('popup'),
|
||||
page.evaluate(() => window.open('/counter.html')),
|
||||
]);
|
||||
const clickPromises = [];
|
||||
for (let i = 0; i < 21; ++i) {
|
||||
if (i % 3 === 0)
|
||||
clickPromises.push(popup.locator('button').click());
|
||||
else
|
||||
clickPromises.push(page.locator('button').click());
|
||||
}
|
||||
await Promise.all(clickPromises);
|
||||
expect(await page.evaluate(() => window['count'])).toBe(14);
|
||||
expect(await popup.evaluate(() => window['count'])).toBe(7);
|
||||
});
|
||||
|
||||
it('should click svg', async ({ page }) => {
|
||||
await page.setContent(`
|
||||
|
|
@ -1012,7 +1029,6 @@ it('should click in a nested transformed iframe', async ({ page }) => {
|
|||
|
||||
it('ensure events are dispatched in the individual tasks', async ({ page, browserName }) => {
|
||||
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/19685' });
|
||||
it.fixme(browserName === 'firefox');
|
||||
await page.setContent(`
|
||||
<div id="outer" style="background: #d4d4d4; width: 60px; height: 60px;">
|
||||
<div id="inner" style="background: #adadad; width: 46px; height: 46px;"></div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue