Skip to content

ZarrTech/playwright-api-ui-test-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

playwright-api-ui-test-framework

Hybrid QA automation framework using Playwright for API + UI testing with a clean service layer, tagged test suites, and CI-ready structure.

This repo demonstrates a real-world workflow:

  • authenticate via API
  • validate products via API
  • create an order via API
  • verify the order exists via UI by injecting the token into localStorage (skip UI login)

Tech Stack

  • Playwright Test (UI + APIRequestContext)
  • Node.js (CommonJS)
  • .env configuration (local) + GitHub Secrets (CI)

Project Structure (high-level)

src/
  api/
    apiClient.js
    auth.service.js
    products.service.js
    orders.service.js
  utils/
    authStorage.js

tests/
  api/
    auth.negative-edge.api.spec.js
    orders.negative-edge.api.spec.js
    contracts.api.spec.js
  e2e/
    orders.api.spec.js

.github/
  workflows/
    playwright.yml

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors