mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: permissions example should be an array (#23052)
This commit is contained in:
parent
04070a59e1
commit
ae930910ad
@ -346,7 +346,7 @@ import { defineConfig } from '@playwright/test';
|
||||
export default defineConfig({
|
||||
use: {
|
||||
// Grants specified permissions to the browser context.
|
||||
permissions: 'notifications',
|
||||
permissions: ['notifications'],
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
@ -49,7 +49,7 @@ export default defineConfig({
|
||||
locale: 'en-GB',
|
||||
|
||||
// Grants specified permissions to the browser context.
|
||||
permissions: 'geolocation',
|
||||
permissions: ['geolocation'],
|
||||
|
||||
// Emulates the user timezone.
|
||||
timezoneId: 'Europe/Paris',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user