From 82edd1f4b2a7747e55b6718b9061df0fc9392002 Mon Sep 17 00:00:00 2001 From: Nav-2d Date: Thu, 18 Nov 2021 15:38:18 -0800 Subject: [PATCH] docs/test-configuration: Update code snippet (#10355) --- docs/src/test-configuration-js.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/src/test-configuration-js.md b/docs/src/test-configuration-js.md index 0cace82933..451f47563b 100644 --- a/docs/src/test-configuration-js.md +++ b/docs/src/test-configuration-js.md @@ -92,11 +92,11 @@ The same works inside describe. // example.spec.js const { test, expect } = require('@playwright/test'); -test.describe('headed block', () => { - // Run tests in this describe block in headed mode. - test.use({ headless: false }); +test.describe('locale block', () => { + // Run tests in this describe block with specified locale. + test.use({ locale: 'en-US' }); - test('my headed test', async ({ page }) => { + test('my locale test', async ({ page }) => { // ... }); }); @@ -106,11 +106,11 @@ test.describe('headed block', () => { // example.spec.ts import { test, expect } from '@playwright/test'; -test.describe('headed block', () => { - // Run tests in this describe block in headed mode. - test.use({ headless: false }); +test.describe('locale block', () => { + // Run tests in this describe block with specified locale. + test.use({ locale: 'en-US' }); - test('my headed test', async ({ page }) => { + test('my locale test', async ({ page }) => { // ... }); });