Skip to content

Commit

Permalink
fix(permissions): fix notifications permissions on firefox (#1531)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Mar 25, 2020
1 parent 6be3634 commit ef9e04d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -9,7 +9,7 @@
"main": "index.js",
"playwright": {
"chromium_revision": "751710",
"firefox_revision": "1054",
"firefox_revision": "1056",
"webkit_revision": "1182"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions test/permissions.spec.js
Expand Up @@ -52,19 +52,19 @@ module.exports.describe = function({testRunner, expect, WEBKIT, FFOX}) {
await context.grantPermissions(['geolocation'], { origin: server.EMPTY_PAGE });
expect(await getPermission(page, 'geolocation')).toBe('granted');
});
it.fail(FFOX)('should grant notifications permission when listed', async({page, server, context}) => {
it('should grant notifications permission when listed', async({page, server, context}) => {
await page.goto(server.EMPTY_PAGE);
await context.grantPermissions(['notifications'], { origin: server.EMPTY_PAGE });
expect(await getPermission(page, 'notifications')).toBe('granted');
});
it.fail(FFOX)('should accumulate when adding', async({page, server, context}) => {
it('should accumulate when adding', async({page, server, context}) => {
await page.goto(server.EMPTY_PAGE);
await context.grantPermissions(['geolocation']);
await context.grantPermissions(['notifications']);
expect(await getPermission(page, 'geolocation')).toBe('granted');
expect(await getPermission(page, 'notifications')).toBe('granted');
});
it.fail(FFOX)('should clear permissions', async({page, server, context}) => {
it('should clear permissions', async({page, server, context}) => {
await page.goto(server.EMPTY_PAGE);
await context.grantPermissions(['geolocation']);
await context.clearPermissions();
Expand Down

0 comments on commit ef9e04d

Please sign in to comment.