arrow-left Back to topicQuizCommand lineCheck yourself1.A developer commits a test file with test.only() left in by accident. All tests run on CI pass green. Why is this a problem and how do you prevent it?It's not a problem — test.only() still runs all tests, just marks one as focusedtest.only() makes CI run only that one test — all others are silently skipped, giving false confidence. Add --forbid-only to CI to make test.only() fail the buildThe fix is to use test.skip() instead — it marks the test as skipped and is safe to commit2.You want to send test results to a JUnit XML file for your CI system. Which CLI flag do you use?--output=junit--reporter=junit--format=xml--export=junit3.Your CI has 4 parallel jobs and you want to split the test suite evenly across them. Which command runs the second job's share?npx playwright test --split=2/4npx playwright test --shard=2/4npx playwright test --parallel-index=2 --parallel-total=4npx playwright test --chunk=2 --chunks=44.You are running a flaky test suite and want CI to stop as soon as 3 tests fail. Which flag achieves this?--stop-after=3--max-failures=3--fail-fast=3--abort-on-failure=35.A directory has no test files matching the pattern you specified. By default Playwright exits with an error. How do you make it exit successfully in this case?--ignore-empty--pass-with-no-tests--allow-empty--no-fail-on-empty6.You want to see all tests that will run (with their full names and file paths) without actually executing them. Which flag does this?--dry-run--list--preview--show-tests7.A test is consistently timing out after 30 seconds. You want to increase the per-test timeout to 60 seconds for a single run without changing the config file. Which flag do you use?--wait=60000--timeout=60000--max-time=60--test-timeout=60s8.You want to speed up a test run on your local machine. Which flag controls how many tests run in parallel?--concurrency=4--workers=4 (or -j 4)--parallel=4--threads=4Submit answersarrow-left PreviousAssertionsGenerating testsNext arrow-right