Sparround

Live coding tasks

Typical live coding formats in middle Automation interviews:

  • Write a test: a Playwright test for a given page (login, form, table)
  • Code review: critique and improve a badly written test (the most informative format!)
  • JS/TS exercise: array/string manipulation, async logic
  • Debug: find why a flaky/failing test breaks

What's judged: thought process (think aloud!), correct locator/waiting choices, code cleanliness, asking questions. NOT perfect syntax — memorising every API without an IDE isn't expected; saying "I don't recall the exact API here, but the logic is this" is fine.

Classic flaws to hunt in code-review format: fixed sleeps, brittle selectors (nth-child, long CSS), non-awaited async calls, 10 scenarios in one test, assertion-less "tests", hardcoded data/URLs, failures swallowed by try/catch. Memorise this list — recite it when shown a bad test.