07
MODULE 07 / 08
AI-AUGMENTED QA PATH
S E C T I O N 07

Automation Scripting: Manual vs. Automated.

You describe what you want. AI writes the code. The skill that matters is reviewing what comes back.

Not typing it from memory.

The vibe coding workflow.

01

Describe

Plain English: what should this test do, step by step.

02

Generate

AI writes the code: Cypress, Playwright, whatever your stack is.

03

Review

The one step you cannot skip. Does the logic match what you know should happen?

04

Run and verify

Execute it. Confirm it fails when it should, passes when it should.

That review muscle is exactly what a decade of manual QA instinct already built. Vibe coding just moves where that instinct gets applied: from executing the test yourself to verifying the AI executed it correctly.

Page Object Model: one fix instead of twenty.

Refactoring into a Page Object Model stores each page's selectors and actions in one place, so when a button's selector changes, you fix it once instead of hunting it down in twenty test files. AI tools like Cursor apply this pattern consistently, and it's specific enough that you can verify each change quickly.

Your toolkit: three categories, none require coding first.

CategoryRole
AI code partnerClaude and Cursor: generate and explain the actual test code
Test execution environmentWhere the suite actually runs: Cypress, Playwright
Version control homeGitHub: where the portfolio project lives, publicly
FAIL

Tests that only run when you remember to run them. Protect no one.

PASS

A GitHub Actions workflow that runs the suite automatically on every push. One YAML file, AI writes a solid first draft.

More 2026 job postings ask for Playwright specifically. Once you've built one Cypress suite, porting it with AI's help is an afternoon's work. The logic is already right, only the syntax changes.

Manual vs. automated: what actually changes.

Everything above is the manual path: you steer AI one prompt at a time. The other path is letting AI generate the entire framework from your acceptance criteria. Here's what actually changes between them:

Hand-prompted (this module)Generated framework
Who writes the codeAI, one prompt per test, you steer each oneAI scans the live app and generates the whole framework
Your roleReview every block as it comes backReview the framework once, as a deliverable
Starting pointA blank file and a promptYour acceptance criteria
What you ownEvery line, deeply familiarProduction-ready code, still yours to read and keep
Where it fitsLearning the skill, portfolio buildingShipping at work, where speed matters

The review skill is identical in both columns. The difference is altitude, not responsibility: one test at a time, or the whole framework at once. Either way, you read the code before you trust it.

CHALLENGE 07

Build the loop.

Pick one real user flow on any site (product search, a login form, a public demo app). Describe it in plain English, have AI generate the test, review the logic line by line, then run it. Note one thing the review step caught that you'd have missed skipping straight to running it.

Save your output. That's your completion proof for this module.
What You Learned: Module 7

The takeaways:

  • The mistake to avoid: trusting AI-generated code like a senior engineer's pull request, by default, because of who wrote it
  • The right frame: treat it like a junior engineer's first draft on unfamiliar code. Probably fine, definitely needs a real read, and your job is the read, not the typing
  • The real skill: reviewing code you didn't write, fast, with QA instincts instead of developer instincts. Not "does it compile" but "does the logic match what the test should actually verify"
  • The two paths: hand-prompting builds the skill and the portfolio. A generated framework gets you the same deliverable at work speed. The review stays your job on both

Why it stays your call: AI doesn't know your product the way you do. That judgment is the one thing it cannot make for you.

Check yourself: next time AI generates a test for you, before you run it, read it once and predict what it will do. Then run it. Did it match your prediction? If not, that gap is exactly the skill this module is asking you to build.

Skip the manual work entirely

This module showed you how to prompt for it.
QA Smith AI just builds it.

Everything in the second column of that table is what QA Smith AI does: a production-ready Cypress or Playwright framework generated directly from your acceptance criteria, grounded in your real app by scanning the live DOM first, ready to commit. No prompting required, no starting from a blank file.

BEFORE · HAND-PROMPTED
AI chat · one spec, one prompt
describe('login', () => {
  it('logs in', () => {
    cy.visit('/login')
    cy.get('#email')
      .type('user@test.com')
    cy.get('.btn').click()
  })
})
One file. Generic selectors. No structure. You review every block.
AFTER · QA SMITH AI
Generated framework · ready to commit
cypress/
  e2e/
    login.cy.ts
    checkout.cy.ts
  pages/
    LoginPage.ts
    CheckoutPage.ts
  reports/
    selector-report.md
  cypress.config.ts
Full framework. Page objects. Selector report. Review once, commit.
Try QA Smith AI →

The four-step vibe coding workflow

Page Object Model, and the three tools that cover this whole workflow

Why tests belong in CI/CD, not on your machine only

Up Next: Module 08 (Final)

Building a Persistent AI Workflow.

  • Why every new AI chat starts from zero, and the fix
  • Claude Projects and CLAUDE.md, side by side
  • Then: the 15-question certification exam