Playwright Testing Interview Questions for Lead Roles (₹20–25 LPA)
40 questions with answers for lead roles — 1 easy, 31 medium, 8 hard.
What ₹20–25 LPA interviews expect
About ₹20–25 LPA Playwright Testing roles
Roles in the ₹20–25 LPA band are typically for lead roles. Interviewers check whether you can already do the work expected at this level, so questions here are weighted towards Component Testing (8), Network Mocking (6), Fixtures and Hooks (5), Debugging and Trace Viewer (5).
Salary bands are indicative only. The same skills can pay differently across cities, company types and negotiation.
Your mocked route never fires. What do you check?
Show answer
How do you return a fake JSON response that depends on the request body?
Show answer
How do you handle shadow DOM?
Show answer
How do you structure environment-specific configs in Playwright?
Show answer
How do you do visual regression testing?
Show answer
Mocked responses drift from the real API and tests pass while production breaks. How do you prevent this?
Show answer
What is ctViteConfig and when do you need it?
Show answer
How do you use test.step and test annotations?
Show answer
Component tests fail because imports like @/utils cannot be resolved, though the app builds fine. How do you fix it?
Show answer
What are fixtures in Playwright?
Show answer
The suite has a 3 percent flaky rate. How do you find and fix the causes systematically?
Show answer
A test must confirm that an error banner does not appear, but it always waits the full timeout. How do you fix it?
Show answer
Describe a time you had to decide which testing level a feature belonged to.
Show answer
How do you wrap a component in a theme or router provider using hooksConfig?
Show answer
How do you add or change request headers for only some requests?
Show answer
Write a test that checks keyboard Tab order through a login form.
Show answer
Write a minimal custom reporter that prints the titles of failed tests at the end.
Show answer
Why choose Playwright over Selenium?
Show answer
A test passes locally but fails in CI with a timeout on a click. How do you use the trace?
Show answer
When should you choose a component test over an end-to-end test?
Show answer
Tell me about setting up CI for a test suite.
Show answer
When is visual regression testing a poor fit?
Show answer
What is the playwright/index.tsx file used for?
Show answer
How do you mock third-party APIs in UI tests?
Show answer
What do maxDiffPixels, maxDiffPixelRatio and threshold control in a screenshot comparison?
Show answer
Describe a time a broken fixture failed many tests at once and how you handled it.
Show answer
How do you send a POST request with a JSON body?
Show answer
What is hoisting?
Show answer
How do you capture browser console messages and page errors?
Show answer
How does Playwright's trace viewer help?
Show answer
What are the trade-offs of trace 'on' versus 'retain-on-failure' in CI?
Show answer
How do you validate response headers?
Show answer
What are Partial, Pick, Omit and Record used for?
Show answer
How do you test file downloads and verify their content?
Show answer
How is a component test different from an end-to-end test?
Show answer
How do you mock API calls made by a component in a component test?
Show answer
How do you attach a screenshot or log to the report from inside a test?
Show answer
What is the difference between test-scoped and worker-scoped fixtures?
Show answer
How do you simulate a slow API to test a loading spinner?
Show answer
Frequently asked questions
What do Playwright Testing interviews for ₹20–25 LPA roles test?
At ₹20–25 LPA the focus is usually on: leading and reviewing others’ work, planning and estimation, strategy and roadmap input, cross-team collaboration. This page's set is weighted towards Component Testing (8), Network Mocking (6), Fixtures and Hooks (5), Debugging and Trace Viewer (5).
Which companies pay ₹20–25 LPA for Playwright Testing roles?
Pay depends on company type, city, skills and negotiation, not only experience. Use the company-wise pages to practise for the specific employers you are targeting, and treat salary bands as a rough guide.
How should I prepare for a ₹20–25 LPA Playwright Testing interview?
Solve every question here without looking at the answer first, mark the ones you miss, save them to Last-Minute Revision and revise them the night before. Prepare two project stories that show impact at the level expected for ₹20–25 LPA.