arrow-left Back to topicQuizRunning and debugging testsCheck yourself1.Which command runs only tests tagged with @smoke in their title?npx playwright test --tag smokenpx playwright test --grep "@smoke"npx playwright test smoke2.What does page.pause() do inside a test?Sleeps for 30 seconds.Pauses execution and opens the Playwright Inspector to step through.Aborts the suite immediately.3.Which command opens the HTML report from the last test run?npx playwright show-reportnpx playwright reportnpx playwright open-report4.How do you run tests only in the chromium project from the config?npx playwright test --browser=chromiumnpx playwright test --project=chromiumBROWSER=chromium npx playwright test5.How do you run only the tests in a single spec file, e.g. tests/auth.spec.ts?npx playwright test --file=tests/auth.spec.tsnpx playwright test tests/auth.spec.tsnpx playwright test --spec authnpx playwright run tests/auth.spec.ts6.You want to run tests with only 1 worker to watch them run sequentially in the browser window. Which command is correct?npx playwright test --headed --workers=1npx playwright test --serial --headednpx playwright test --headed --no-parallelnpx playwright test --visible --sequential7.What is the key difference between UI mode (--ui) and headed mode (--headed)?They are identical — --ui is just a shorthand for --headed.UI mode opens a dedicated test runner GUI with watch mode, trace inspection and locator picker; headed mode simply shows the browser window during a normal run.UI mode runs tests in the cloud; headed mode runs them locally.Headed mode includes the Playwright Inspector; UI mode does not.8.You want to run only tests whose title contains the word 'login' AND run them in the chromium project only. Which command achieves this?npx playwright test --filter=login --browser=chromiumnpx playwright test --grep login --project=chromiumnpx playwright test --name=login --engine=chromiumnpx playwright test login --chromiumSubmit answersarrow-left PreviousWriting your first testsLocatorsNext arrow-right