SENIOR & LEAD QA

Answer like the person who owns the framework.

Senior interviews go past “how do I click a button”. This 14-day plan covers architecture, scaling, debugging and the trade-offs behind every choice, with labs you solve under real interview conditions.

14study days
~42 hof focused work
32interview questions
10live coding labs

Senior to Lead · TypeScript · Days 1, 2, 13 free · by Greg Sala

What’s inside

One plan. Everything you need to prepare.

The course is an interactive app in the AssertionCraft portal. Your progress is saved as you go.

01

A 14-day plan

Four phases, one topic a day, with objectives, a deep dive, common mistakes and practice tasks.

~42 h in total
02

Interview question bank

Short and detailed answers, code examples, recruiter traps and senior perspective. Practise with flashcards.

32 questions
03

Live coding lab

Real tasks against a local practice app. Solve them in your editor, then check your work with the grader.

10 labs
04

Mock interview & cheatsheet

A 45-minute timed interview with random questions and a task, plus a cheatsheet with golden rules.

9 cheatsheet sections
After 14 days

What you’ll be able to do

  • Explain the architecture

    Browser, context and page, out-of-process design and why it matters next to Cypress.

  • Mock and validate at the edges

    Route interception, 500 errors, hybrid API + UI flows and Zod contract checks.

  • Design for a team

    Fluent Page Objects, custom fixtures and dependency injection that keep a big suite readable.

  • Scale the pipeline

    Workers, retries, sharding, merge-reports and Docker, and when each one helps.

  • Diagnose instead of retry

    Trace Viewer, UI Mode, visual regression, accessibility checks and AI tooling with Playwright MCP.

  • Lead the conversation

    Whiteboard scenarios under time pressure, a 45-minute mock interview and questions to ask the manager.

Program

14 days, 4 phases

About 42 hours of focused work, 2.5 to 3.5 hours a day. Open any day to see what you’ll cover.

Free open on a free Skool account
Pro included in Pro, $29/year

Phase 1: Foundations, Resilient Locators & Auto-waitingDays 1–3

Day 01Playwright Internal ArchitectureBrowser, Context, Page, CDP and the out-of-process architecture2.5 hFree
  • The Browser → BrowserContext → Page hierarchy and in-RAM micro-profiles
  • Out-of-process architecture (Playwright) vs in-process (Cypress)
  • Process architecture: Node.js Client <-> Playwright Driver/Server <-> Browser Process
  • Multi-page support and handling popups / new windows
Day 02Resilient Locators & the Auto-waiting MechanismgetByRole, accessibility tree, Shadow DOM and actionability checks3 hFree
  • Prioritizing user-facing locators (the AOM accessibility tree)
  • Actionability checks: what Playwright verifies before an action
  • Automatic Shadow DOM piercing
  • Filtering and chaining locators (.filter({ hasText }), .filter({ has }))
  • Practical digital accessibility (A11y) tests with @axe-core/playwright and WCAG 2.1 AA
  • Handling nested <iframe> frames with page.frameLocator() and dynamic tables

Lab 01 · Refactoring Brittle Locators (Refactor XPath/CSS) · 12 min

Lab 02 · Dynamic Table, Shadow DOM & iframe (frameLocator) · 18 min

Lab 08 · Accessibility Testing (A11y) with AxeBuilder & the Focus Ring · 20 min

Day 03Web-First Assertions, Asynchrony & Pollingexpect(locator).toBe* vs locator.is* and expect.poll / expect.toPass2.5 hPro
  • Auto-retrying assertions vs instant boolean checks
  • Asynchronous polling with expect.poll()
  • Retrying whole blocks of operations: expect.toPass()
  • Managing timeouts and business messages in assertions

Lab 03 · Asynchronous Polling of an API Status (expect.poll) · 15 min

Phase 2: Network Mocking, Interception & Auth StateDays 4–6

Day 04Network Interception & API Route Mockingpage.route(), route.fulfill(), route.abort() and failure testing3.5 hPro
  • Intercepting network requests with page.route()
  • Stubbing responses with route.fulfill() (simulating 500, JSON and headers)
  • Modifying real server responses (route.fetch + spying)
  • Blocking trackers and heavy media with route.abort()
  • The full anatomy of network interception: fulfill vs continue vs fetch vs fallback & WebSockets

Lab 04 · Network Mocking & Simulating a 500 Error · 15 min

Day 05API Testing & Hybrid Scenarios (API + UI)playwright.request, APIRequestContext, data seeding2.5 hPro
  • The built-in APIRequestContext client (the request object)
  • The hybrid pattern: instant seed through the API → verification in the UI
  • Sharing the session between the request object and the browser
  • Validating JSON contracts and API schemas
  • Checking HTTP status codes, headers and error resilience

Lab 05 · TypeScript Schema Validation (Zod) & API Contract Validation · 20 min

Day 06Authentication & State Management at ScalestorageState, auth.setup.ts, multi-role testing without logging in again3 hPro
  • The Project Dependencies pattern in playwright.config.ts
  • Generating and structuring the storageState.json file
  • Multi-role test architecture (RBAC: Admin, Manager, Customer)
  • Handling expiring JWT tokens and dynamic environments

Lab 06 · Authentication with storageState & the API Context · 15 min

Phase 3: Advanced POM, Custom Fixtures & DIDays 7–8

Day 07Page Object Model (POM) – Senior StandardsComponent composition, Fluent Interface and separation of concerns3 hPro
  • A modern POM in TypeScript (read-only locators in the constructor)
  • Eliminating the BasePage anti-pattern with click and type wrappers
  • Composition: Page Objects split into Component Objects
  • The Fluent Interface pattern (chained calls with return this)

Lab 07 · Page Object Model with a Fluent Interface & Types · 20 min

Day 08Custom Fixtures & Dependency Injectiontest.extend(), automatic teardown, worker vs test scope3.5 hPro
  • Dependency injection with test.extend<MyFixtures>()
  • Automatic teardown with code after await use()
  • Fixture scopes: test-scoped vs worker-scoped
  • Chaining fixtures (composability)

Lab 10 · Custom Fixtures & Reliable Teardown (test.extend) · 16 min

Phase 4: CI/CD Sharding, Debugging Traces & AI ToolingDays 9–14

Day 09Enterprise Configuration in playwright.config.tsWorkers, retries, timeouts, multi-browser projects and reporting2.5 hPro
  • Three-level timeout management in the config
  • Retry and trace strategy: on-first-retry
  • Choosing the number of workers and preventing the OOM Killer in Docker
  • Parallel reporting: HTML, JUnit and the Blob reporter
Day 10CI/CD Sharding, Parallelization & DockerScaling a suite from 1h to 6 minutes in GitLab CI and GitHub Actions3.5 hPro
  • The built-in sharding mechanism (--shard=x/y)
  • Merging reports with npx playwright merge-reports
  • Optimizing browser binary caching in CI
  • Containerization in Docker (mcr.microsoft.com/playwright)
Day 11Diagnosing Flaky Tests & Playwright ToolingTrace Viewer, UI Mode, PWDEBUG and timing anomaly analysis3 hPro
  • Reading and navigating the Playwright Trace Viewer perfectly
  • Identifying hydration mismatch problems in React/Next.js
  • Working in Playwright UI Mode (--ui) and the Inspector (PWDEBUG=1)
  • Quarantine strategy and SLA for flaky tests
  • Playwright + AI & the Model Context Protocol (@playwright/mcp) and Aria Snapshots
Day 12Visual Regression & Environment EmulationtoHaveScreenshot(), data masking, geolocation and viewport2.5 hPro
  • Built-in visual regression with expect(page).toHaveScreenshot()
  • Masking dynamic elements in visual tests
  • Emulating mobile devices, geolocation and time zone
  • Managing baseline screenshots across systems (the Linux vs Windows/macOS font problem)
Day 13Live Coding: Whiteboard Scenarios Under Time PressureA dress rehearsal of live coding with an interviewer and thinking out loud3.5 hFree
  • The 4-step framework: Clarify → Plan → Implement → Edge Cases
  • The Think Aloud Protocol (speaking out loud while writing code)
  • Clean TypeScript in tests (typing, avoiding any, custom types)
  • Reacting to errors: reading detailed Playwright messages
  • Advanced TypeScript: Structural Typing, Type Narrowing and Declaration Merging
  • JS/TS async patterns in live coding: Promise.all and a generic retry<T> helper

Lab 09 · TypeScript Async: Promise.all & a Retry Helper with a Fixed Delay · 20 min

Day 14Mock Interview Simulation & Strategic QuestionsA full dress rehearsal, STAR questions and a dialogue with the Hiring Manager3 hPro
  • The STAR method (Situation, Task, Action, Result) in technical answers
  • Presenting engineering maturity and architectural thinking as an advantage
  • A set of 5 strategic questions for the technical team and the manager
  • Final dress rehearsal and readiness check
Live coding lab

10 tasks you’ll meet in real interviews

Each lab starts from broken or unfinished code, just like a live coding round. 4 of them are free.

Lab 01 · Day 2 · 12 minFree

Refactoring Brittle Locators (Refactor XPath/CSS)

Resilient Locators
Lab 02 · Day 2 · 18 minFree

Dynamic Table, Shadow DOM & iframe (frameLocator)

Tables, Shadow DOM & Frames
Lab 03 · Day 3 · 15 minPro

Asynchronous Polling of an API Status (expect.poll)

Async Assertions
Lab 04 · Day 4 · 15 minPro

Network Mocking & Simulating a 500 Error

Network Interception
Lab 05 · Day 5 · 20 minPro

TypeScript Schema Validation (Zod) & API Contract Validation

API & TypeScript Contracts
Lab 06 · Day 6 · 15 minPro

Authentication with storageState & the API Context

Authentication
Lab 07 · Day 7 · 20 minPro

Page Object Model with a Fluent Interface & Types

Architecture & POM
Lab 08 · Day 2 · 20 minFree

Accessibility Testing (A11y) with AxeBuilder & the Focus Ring

Accessibility (A11y)
Lab 09 · Day 13 · 20 minFree

TypeScript Async: Promise.all & a Retry Helper with a Fixed Delay

JS/TS Async & Resilience
Lab 10 · Day 8 · 16 minPro

Custom Fixtures & Reliable Teardown (test.extend)

Custom Fixtures & DI
1 · Download

Get the lab as a ZIP: a small Playwright project with a local practice app.

2 · Solve

Fix the starter test in your own editor. Hints and a reference solution are there when you’re stuck.

3 · Check

Run the grader and the tests, the same way you’d run a real suite in CI.

Question bank

32 questions, answered the way interviewers expect

  • A short answer to say out loud, and a detailed one to understand the why
  • Code examples you can run, not just definitions
  • Recruiter traps: the follow-up questions that catch people out
  • Flashcards with Known / Review self-rating, linked to the day you studied the topic

Topics32 total

  • Architecture & Concepts4
  • Locators & Auto-waiting5
  • Network & API Mocking5
  • Authentication & State Management2
  • Fixtures & POM Architecture3
  • CI/CD, Sharding & Scaling3
  • Diagnostics & Debugging2
  • Advanced TypeScript3
  • Accessibility (A11y)1
  • AI & Playwright MCP2
  • Visual Regression2
Who it’s for

Is this the right track?

A good fit if you are

  • Mid and Senior QA engineers going for a Senior or Lead role
  • Automation engineers who own (or will own) a Playwright framework
  • Engineers moving a large suite from Selenium or Cypress
  • Leads who want sharper answers on CI, scaling and flakiness

Probably not for you if

  • You haven’t written Playwright tests yet (start with the Junior & Mid track)
  • You’re looking for a click-by-click beginner tutorial
Greg Sala

Hi, I’m Greg Sala, a Principal Test Automation Engineer with 20 years in software. I wrote every question and lab from hands-on work with real test suites, and explained it the way I’d explain it to someone on my team. More about me

Pricing

Start free. Go Pro when it clicks.

One Pro plan unlocks this course and every other AssertionCraft course.

Free
$0 forever

Try the plan, the questions and the labs before you pay anything.

  • Days 1, 2, 13 of this course
  • Their questions and 4 labs
  • Demo lessons from every other course
  • Community feed & discussions
Join for free
ALL COURSESPro
$29 / year

Less than $2.50 a month, billed yearly on Skool.

  • All 14 days, 32 questions and 10 labs
  • Mock interview, flashcards and cheatsheet
  • Full access to all courses & labs
  • New courses as they ship, at no extra cost
  • Private Pro community on Skool
Join Pro on Skool →

Founding bonus: personal code review of your suite (first 10 members).

FAQ

Questions about this course

How advanced is it?

It assumes you’ve written Playwright tests before. Day 1 starts at architecture, not installation.

What can I try for free?

Days 1, 2, 13 with their questions and labs are open on a free Skool account. Pro unlocks all 14 days.

How much time do I need?

About 42 hours over 14 days, 2.5 to 3.5 hours a day. The study planner helps you spread it out.

How do the labs work?

You download a project with a local practice app and an auto-grader, solve each task in your editor and run it like a real suite. Each task also runs in the browser.

Does it cover AI tools?

Yes. Day 11 covers Playwright MCP and Aria snapshots alongside the classic debugging tools.

What does Pro cost?

$29 a year on Skool, and that includes every course, not just this one. Cancel anytime.

Your interview won’t wait. Start with Day 1 today.

Free account, no card needed. Days 1, 2, 13 are open the moment you join.

Start the free days →
Days 1, 2, 13 freePro $29/year on Skool
Start free →