@@ -256,9 +256,6 @@ test('my test', async ({ page }) => {
256
256
// Expect an attribute "to be strictly equal" to the value.
257
257
expect (await page .getAttribute (' text=Get Started' , ' href' )).toBe (' /docs/intro' );
258
258
259
- // Expect an element "to be visible".
260
- expect (await page .isVisible (' [aria-label="GitHub repository"]' )).toBeTruthy ();
261
-
262
259
await page .click (' text=Get Started' );
263
260
// Expect some text to be visible on the page.
264
261
expect (await page .waitForSelector (' text=System requirements' )).toBeTruthy ();
@@ -296,61 +293,61 @@ Here are the most common options available in the [command line](./test-cli.md).
296
293
297
294
- Run tests in headed browsers
298
295
` ` ` bash
299
- npx playwright test -- headed
296
+ npx playwright test - c tests - - headed
300
297
` ` `
301
298
302
299
- Run tests in a particular browser
303
300
` ` ` bash
304
- npx playwright test -- browser= webkit
301
+ npx playwright test - c tests - - browser= webkit
305
302
` ` `
306
303
307
304
- Run tests in all browsers
308
305
` ` ` bash
309
- npx playwright test -- browser= all
306
+ npx playwright test - c tests - - browser= all
310
307
` ` `
311
308
312
309
- Run a single test file
313
310
` ` ` bash
314
- npx playwright test tests/ todo- page .spec .ts
311
+ npx playwright test - c tests tests/ todo- page .spec .ts
315
312
` ` `
316
313
317
314
- Run a set of test files
318
315
` ` ` bash
319
- npx playwright test tests/ todo- page/ tests/ landing- page/
316
+ npx playwright test - c tests tests/ todo- page/ tests/ landing- page/
320
317
` ` `
321
318
322
319
- Run a test with specific title
323
320
` ` ` bash
324
- npx playwright test - g " add a todo item"
321
+ npx playwright test - c tests - g " add a todo item"
325
322
` ` `
326
323
327
324
- Run tests [in parallel](./test-parallel.md) - that's the default
328
325
` ` ` bash
329
- npx playwright test
326
+ npx playwright test - c tests
330
327
` ` `
331
328
332
329
- Disable [parallelization](./test-parallel.md)
333
330
` ` ` bash
334
- npx playwright test -- workers= 1
331
+ npx playwright test - c tests - - workers= 1
335
332
` ` `
336
333
337
334
- Choose a [reporter](./test-reporters.md)
338
335
` ` ` bash
339
- npx playwright test -- reporter= dot
336
+ npx playwright test - c tests - - reporter= dot
340
337
` ` `
341
338
342
339
- Run in debug mode with [Playwright Inspector](./inspector.md)
343
340
` ` ` bash
344
341
# Linux/ macOS
345
- PWDEBUG = 1 npx playwright test
342
+ PWDEBUG = 1 npx playwright test - c tests
346
343
347
344
# Windows with cmd .exe
348
345
set PWDEBUG = 1
349
- npx playwright test
346
+ npx playwright test - c tests
350
347
351
348
# Windows with PowerShell
352
349
$env: PWDEBUG = 1
353
- npx playwright test
350
+ npx playwright test - c tests
354
351
` ` `
355
352
356
353
## Create a configuration file
@@ -407,11 +404,11 @@ import { PlaywrightTestConfig, devices } from '@playwright/test';
407
404
const config: PlaywrightTestConfig = {
408
405
projects: [
409
406
{
410
- name: ' Desktop Chromium ' ,
407
+ name: ' Chrome Stable ' ,
411
408
use: {
412
409
browserName: ' chromium' ,
413
- // Test against Chrome Beta channel.
414
- channel: ' chrome-beta ' ,
410
+ // Test against Chrome Stable channel.
411
+ channel: ' chrome' ,
415
412
},
416
413
},
417
414
{
0 commit comments