Frontend Test Engineer Interview Questions & Answers
40 questions for Frontend Test Engineer interviews — 2 easy, 36 medium, 2 hard.
About the Frontend Test Engineer role
Focuses on the quality of web user interfaces: functional flows, responsive layouts, accessibility, visual regressions and behaviour under different network conditions. Works closely with frontend developers and often tests components against mocked APIs. Interviews cover locators, assertions, network mocking, device emulation, visual comparisons and debugging rendering or timing issues across Chromium, Firefox and WebKit. Knowledge of HTML, CSS and how modern frontend frameworks render pages is a strong plus.
How do you run tests on mobile viewports?
Show answer
How do you run the same visual tests at mobile, tablet and desktop sizes?
Show answer
Tell me about a time mocking helped you test a hard edge case.
Show answer
How do you test geolocation, permissions and time zones?
Show answer
How do you fail a test if the page logs any console error?
Show answer
How do you write data-driven API tests with many inputs?
Show answer
What are nth(), first() and last(), and why are they risky?
Show answer
What is expect(...).toPass and how is it different from expect.poll?
Show answer
What is the Clock API in Playwright?
Show answer
Tell me about a time a pipeline you owned broke just before a release.
Show answer
The app polls a status endpoint every few seconds. How do you test the change from Pending to Done?
Show answer
What does the Pick locator tool do?
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
How do you add or change request headers for only some requests?
Show answer
A trace shows the click landed on an overlay instead of the button. How do you fix it?
Show answer
How do you use keyboard shortcuts in Playwright?
Show answer
How do you locate elements inside a specific row or card?
Show answer
What is a Promise and what states can it have?
Show answer
What does the DEBUG=pw:api environment variable do?
Show answer
How do you test how the UI handles a 500 error from the orders API?
Show answer
How do you debug a test in VS Code with the Playwright extension?
Show answer
How do you record a trace manually with the tracing API?
Show answer
How do you test a page in dark mode or with reduced motion?
Show answer
How do you test a file download?
Show answer
How do you take screenshots and videos?
Show answer
How do you mock an API response?
Show answer
How do you handle authentication to avoid logging in every test?
Show answer
Write a fixture that gives each parallel worker its own test account.
Show answer
How do you do visual regression testing?
Show answer
A third-party analytics script makes tests slow and flaky. What do you do?
Show answer
How do you capture browser console messages and page errors?
Show answer
How do you handle file uploads and downloads?
Show answer
How does Playwright talk to browsers, and why does that make it less flaky?
Show answer
How do you listen to all network requests on a page?
Show answer
What does force: true do on an action, and why should you avoid it?
Show answer
How do you handle shadow DOM?
Show answer
How do you filter a list of locators by text or by a child element?
Show answer
How do you test accessibility with Playwright?
Show answer
How do you handle multiple tabs or pop-ups?
Show answer
Frequently asked questions
What does a Frontend Test Engineer do?
Focuses on the quality of web user interfaces: functional flows, responsive layouts, accessibility, visual regressions and behaviour under different network conditions. Works closely with frontend developers and often tests components against mocked APIs. Interviews cover locators, assertions, network mocking, device emulation, visual comparisons and debugging rendering or timing issues across Chromium, Firefox and WebKit. Knowledge of HTML, CSS and how modern frontend frameworks render pages is a strong plus.
Which skills are tested in a Frontend Test Engineer interview?
Expect questions on Cross-browser testing, Network mocking, Visual comparisons, Accessibility checks, Responsive emulation. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a Frontend Test Engineer interview?
Revise Locators and Assertions, Network Mocking, Playwright Core, Debugging and Trace Viewer first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.