QA Interview Bug Hunts: A Playwright Walkthrough
Prepare for QA interviews with a live bug hunt. Use Playwright to reproduce an age-boundary defect and explain expected versus actual behavior.
Turn a written requirement into a boundary test, a reproducible defect and an actionable report.
A useful bug-hunt answer shows how you reached a finding. Start from the written requirement, isolate a variable, collect the actual result and explain the consequence. Counting suspicious screens is less informative than a reproducible example tied to a requirement.
Read the specification first
Open Owlery Registration and read its five rules. Students must be 11 or older. A valid registration requires an owl name, a valid email and an exact password confirmation. This exercise deliberately contains five defects.
Try the exercise yourself before reading further. The following walkthrough reveals one planted defect.
Build a boundary test
For an inclusive minimum of 11, useful age cases include 10, 11 and 12. Hold the other fields constant so that an email or password error cannot hide the age behavior. The example submits age 11 and then changes only the age to 12.
The test below is a defect reproduction. It asserts the currently observed rejection at 11, then verifies the successful control case at 12. Passing this reproduction confirms the planted defect remains observable. It does not mean the registration requirement is satisfied.
Run the example
Use the Playwright starter with Node.js 22.12 or newer. Save the complete example as tests/guide.spec.js. Run npm ci, then npx playwright install chromium, then npm test -- tests/guide.spec.js. The starter runs desktop Chromium and a Pixel 7 Chromium profile. Each test creates a fresh browser context. Examples target the public practice site and require no account.
Verified on 4 November 2026 with Playwright 1.62.0.
import { test, expect } from '@playwright/test';
test("Reproduce an age-boundary defect", async ({ page }) => {
await page.addInitScript(() => localStorage.setItem('funui-consent', 'denied'));
await page.goto('https://funui.dev/bug-hunt/owlery-signup');
await page.getByTestId('owlery-owl-name').fill('Boundary Owl');
await page.getByTestId('owlery-email').fill('student@example.com');
await page.getByTestId('owlery-age').fill('11');
await page.getByTestId('owlery-password').fill('Hedwig123');
await page.getByTestId('owlery-confirm').fill('Hedwig123');
await page.getByRole('button', { name: 'Register owl', exact: true }).click();
// Reproduce the planted defect: the spec allows 11, but the form rejects it.
await expect(page.getByTestId('owlery-error')).toHaveText('You must be at least 11 to register an owl.');
await expect(page.getByTestId('owlery-roster-entry')).toHaveCount(0);
// Control case: change only the age and submit again.
await page.getByTestId('owlery-age').fill('12');
await page.getByRole('button', { name: 'Register owl', exact: true }).click();
await expect(page.getByTestId('owlery-roster-entry')).toHaveCount(1);
await expect(page.getByTestId('owlery-roster-entry')).toContainText('Boundary Owl (student@example.com)');
});
Expected result
At age 11 the form reports that the student must be at least 11 and creates no roster entry. At age 12 it registers Boundary Owl once. Both starter project runs pass because these assertions describe the exercise's current behavior.
For a regression test of a corrected implementation, submit age 11 and assert one roster entry with the supplied name and email, plus no visible error. That contract assertion should fail on this intentionally buggy fixture. Do not replace it with the observed rejection and call the defect fixed.
Present the finding in an interview
A concise report can read as follows.
- Title — Registration rejects students at the inclusive minimum age.
- Requirement — Students aged 11 or older may register.
- Preconditions — A fresh page, valid email and matching passwords.
- Steps — Fill the fields, enter age 11, and select Register owl.
- Expected — One registration appears.
- Actual — An age error appears and the roster stays empty.
- Control — With the same fields and age 12, one registration appears.
- Impact — Eligible students at the boundary cannot complete registration.
Record the browser, build or URL, and test data with the report. Explain your severity judgment from user impact and reach. Priority also depends on release context, so state what additional product information you need.
Continue the investigation
After the boundary case, test each remaining rule independently. Look at malformed email, case differences in confirmation and duplicate submission. Keep an actual observation separate from an untested hypothesis. Attach a trace when it helps someone reproduce the result.
Continue with Park Gate Log to practice sorting and pagination, or Coffee Cart Checkout for state and totals. Review locators and waits when an automation failure obscures your finding. Playwright's assertion reference explains the retrying checks used in the example.
Keep reading
- Playwright Locators and Waits: A Practical Guide
- Testing iframes and Shadow DOM with Playwright
- Five Stable-Locator Anti-Patterns
- Network Idle Is Not “Ready”
- Testing a Custom Combobox Without Sleeps
- Deterministic Test Data Without Boring Tests
- Visibility vs. Presence: The Wait Condition Bug
Updated
Fun UI Playground — all challenges, bug hunts, getting started, glossary, about.