docs: permissions example should be an array (#23052)

This commit is contained in:
Adrien Fichet 2023-05-17 10:55:39 +02:00 committed by GitHub
parent 04070a59e1
commit ae930910ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -346,7 +346,7 @@ import { defineConfig } from '@playwright/test';
export default defineConfig({ export default defineConfig({
use: { use: {
// Grants specified permissions to the browser context. // Grants specified permissions to the browser context.
permissions: 'notifications', permissions: ['notifications'],
}, },
}); });
``` ```

View File

@ -49,7 +49,7 @@ export default defineConfig({
locale: 'en-GB', locale: 'en-GB',
// Grants specified permissions to the browser context. // Grants specified permissions to the browser context.
permissions: 'geolocation', permissions: ['geolocation'],
// Emulates the user timezone. // Emulates the user timezone.
timezoneId: 'Europe/Paris', timezoneId: 'Europe/Paris',