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…
Reference in a new issue