feat(firefox): bump to 1217 (#4560)
Also add a test for multiple dialogs of the same type.
This commit is contained in:
parent
9c677f64e0
commit
3846d05f02
|
|
@ -1,6 +1,6 @@
|
||||||
# 🎭 Playwright
|
# 🎭 Playwright
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/playwright) [](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [](https://webkit.org/)
|
[](https://www.npmjs.com/package/playwright) [](https://join.slack.com/t/playwright/shared_invite/enQtOTEyMTUxMzgxMjIwLThjMDUxZmIyNTRiMTJjNjIyMzdmZDA3MTQxZWUwZTFjZjQwNGYxZGM5MzRmNzZlMWI5ZWUyOTkzMjE5Njg1NDg) <!-- GEN:chromium-version-badge -->[](https://www.chromium.org/Home)<!-- GEN:stop --> <!-- GEN:firefox-version-badge -->[](https://www.mozilla.org/en-US/firefox/new/)<!-- GEN:stop --> [](https://webkit.org/)
|
||||||
|
|
||||||
## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)
|
## [Documentation](https://playwright.dev) | [API reference](https://playwright.dev/#?path=docs/api.md)
|
||||||
|
|
||||||
|
|
@ -10,7 +10,7 @@ Playwright is a Node.js library to automate [Chromium](https://www.chromium.org/
|
||||||
| :--- | :---: | :---: | :---: |
|
| :--- | :---: | :---: | :---: |
|
||||||
| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
| Chromium <!-- GEN:chromium-version -->89.0.4330.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
||||||
| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
| WebKit 14.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
||||||
| Firefox <!-- GEN:firefox-version -->84.0b5<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
| Firefox <!-- GEN:firefox-version -->84.0b7<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
|
||||||
|
|
||||||
Headless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.
|
Headless execution is supported for all the browsers on all platforms. Check out [system requirements](https://playwright.dev/#?path=docs/intro.md&q=system-requirements) for details.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "firefox",
|
"name": "firefox",
|
||||||
"revision": "1215",
|
"revision": "1217",
|
||||||
"download": true
|
"download": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -74,3 +74,33 @@ it('should be able to close context with open alert', (test, { browserName, plat
|
||||||
await alertPromise;
|
await alertPromise;
|
||||||
await context.close();
|
await context.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should handle multiple alerts', async ({page}) => {
|
||||||
|
page.on('dialog', dialog => {
|
||||||
|
dialog.accept().catch(e => {});
|
||||||
|
});
|
||||||
|
await page.setContent(`
|
||||||
|
<p>Hello World</p>
|
||||||
|
<script>
|
||||||
|
alert('Please dismiss this dialog');
|
||||||
|
alert('Please dismiss this dialog');
|
||||||
|
alert('Please dismiss this dialog');
|
||||||
|
</script>
|
||||||
|
`);
|
||||||
|
expect(await page.textContent('p')).toBe('Hello World');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should handle multiple confirms', async ({page}) => {
|
||||||
|
page.on('dialog', dialog => {
|
||||||
|
dialog.accept().catch(e => {});
|
||||||
|
});
|
||||||
|
await page.setContent(`
|
||||||
|
<p>Hello World</p>
|
||||||
|
<script>
|
||||||
|
confirm('Please confirm me?');
|
||||||
|
confirm('Please confirm me?');
|
||||||
|
confirm('Please confirm me?');
|
||||||
|
</script>
|
||||||
|
`);
|
||||||
|
expect(await page.textContent('p')).toBe('Hello World');
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue