Senior SDET Interview Questions & Answers
40 questions for Senior SDET interviews — 2 easy, 17 medium, 21 hard.
About the Senior SDET role
Leads test automation strategy and owns the framework used by many engineers. Designs fixtures, data management and CI pipelines, sets standards for locators and reviews, reduces flakiness and runtime, and mentors juniors. Interviews focus on architecture trade-offs, scaling suites with sharding, mocking versus real tests, handling flaky tests, upgrade strategy and leadership scenarios told with concrete results. You are also expected to influence developers and managers on quality goals and release decisions.
What is the difference between test-scoped and worker-scoped fixtures?
Show answer
How do you debug a test in VS Code with the Playwright extension?
Show answer
Tests are flaky in CI. How do you debug them?
Show answer
How does URL matching work in page.route?
Show answer
Why should the Playwright Docker image version match your package version?
Show answer
Ten engineers write tests and quality varies a lot. How do you keep the framework consistent?
Show answer
What is testInfo and what can you do with it?
Show answer
Show a config with a setup project and a browser project that reuses its login.
Show answer
What are the key options in playwright.config.ts?
Show answer
Describe a time you had to decide which testing level a feature belonged to.
Show answer
How do you mock WebSocket traffic in Playwright?
Show answer
What does eslint-plugin-playwright help with?
Show answer
A beforeAll creates one user and tests in the same file fail randomly in parallel mode. Why?
Show answer
A component test passes alone but fails when the full component suite runs. What do you check?
Show answer
How do you attach a screenshot or log to the report from inside a test?
Show answer
How do you test a flow that needs two user roles, such as an admin and a customer, in one test?
Show answer
How do you reduce the execution time of a 2000-test suite?
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
Describe a time you designed a fixture layer that other teams adopted.
Show answer
What reporters does Playwright provide?
Show answer
A worker-scoped fixture holds shared data and some tests see stale values. How do you fix it?
Show answer
Tell me about a time mocking helped you test a hard edge case.
Show answer
How do you run tests against a preview deployment created for each pull request?
Show answer
When should you avoid mocking, and how do you balance mocked and real tests?
Show answer
How do you reuse login state across tests?
Show answer
The app polls a status endpoint every few seconds. How do you test the change from Pending to Done?
Show answer
Tests pass with one worker but fail with eight. How do you debug this?
Show answer
Your mocked route never fires. What do you check?
Show answer
How do you use keyboard shortcuts in Playwright?
Show answer
Why mock the network in UI tests at all?
Show answer
How do you keep API tests independent of environment data?
Show answer
Retries make the build green, but nobody notices flaky tests. How do you surface them?
Show answer
How can you run only the tests affected by a code change?
Show answer
Describe how you handled a flaky test that was blocking releases.
Show answer
A setup fixture creates expensive test data and suite time has doubled. How do you redesign it?
Show answer
How do you upgrade Playwright safely in a large suite?
Show answer
How do you combine reports from sharded CI jobs?
Show answer
How would you structure a large Playwright framework for a team?
Show answer
Frequently asked questions
What does a Senior SDET do?
Leads test automation strategy and owns the framework used by many engineers. Designs fixtures, data management and CI pipelines, sets standards for locators and reviews, reduces flakiness and runtime, and mentors juniors. Interviews focus on architecture trade-offs, scaling suites with sharding, mocking versus real tests, handling flaky tests, upgrade strategy and leadership scenarios told with concrete results. You are also expected to influence developers and managers on quality goals and release decisions.
Which skills are tested in a Senior SDET interview?
Expect questions on Framework architecture, CI scaling and sharding, Flaky test strategy, Mentoring, Test strategy. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a Senior SDET interview?
Revise Framework Design and CI/CD, Fixtures and Hooks, Debugging and Trace Viewer, Network Mocking first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.