mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: mark permissions tests as flaky on Linux & Firefox (#1791)
This commit is contained in:
parent
ea7aadba2b
commit
b2c65db37e
@ -15,7 +15,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const {FFOX, CHROMIUM, WEBKIT} = require('./utils').testOptions(browserType);
|
const {FFOX, CHROMIUM, WEBKIT, LINUX} = require('./utils').testOptions(browserType);
|
||||||
|
|
||||||
// Permissions API is not implemented in WebKit (see https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API)
|
// Permissions API is not implemented in WebKit (see https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API)
|
||||||
describe.skip(WEBKIT)('Permissions', function() {
|
describe.skip(WEBKIT)('Permissions', function() {
|
||||||
@ -82,7 +82,8 @@ describe.skip(WEBKIT)('Permissions', function() {
|
|||||||
await context.clearPermissions();
|
await context.clearPermissions();
|
||||||
expect(await getPermission(page, 'geolocation')).toBe('prompt');
|
expect(await getPermission(page, 'geolocation')).toBe('prompt');
|
||||||
});
|
});
|
||||||
it('should trigger permission onchange', async({page, server, context}) => {
|
//TODO: flaky on Linux. https://github.com/microsoft/playwright/pull/1790/checks?check_run_id=587327883
|
||||||
|
it.fail(FFOX && LINUX)('should trigger permission onchange', async({page, server, context}) => {
|
||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
await page.evaluate(() => {
|
await page.evaluate(() => {
|
||||||
window['events'] = [];
|
window['events'] = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user