How msnaidu305/smarthire works
This repository is a Playwright automation suite for a web application, with UI page objects and an authentication API helper. The intended workflow is to run configured scenarios, interact with the application, and report test outcomes. The configuration and helper implementations are excerpted; scenario files are not, so their use of page objects and the API helper is shown only as unverified. The README is empty.
Main entry points: playwright.config.js Playwright config · ui UI scenarios · LoginPage.js Login page · JobsPage.js Jobs page
Components 16
Test scenarios
- UI scenarios
tests/ui - API scenarios
tests/api - Example scenarios
e2e
Interaction models
- Login page
pages/LoginPage.js - Jobs page
pages/JobsPage.js - Screening page
pages/ScreeningPage.js - Auth API
api/AuthAPI.js
Playwright runtime
- Playwright config
playwright.config.js - Chrome browser
Auth and settings
- Global setup
global-setup.js - Auth state
auth/auth.json - Environment settings
utils/env.js - Environment config
config/environments.js - Login data
testData/loginData.json
Other components
- Test runner
- Web application
Connections 13
- Test runner → Playwright config: runs
- Playwright config → Global setup: configures
playwright.config.js - Playwright config → Auth state: loads state
playwright.config.js - Global setup → Auth state: writes state
global-setup.js - Playwright config → Chrome browser: launches
playwright.config.js - UI scenarios → Login page: uses
- UI scenarios → Jobs page: uses
- UI scenarios → Screening page: uses
- API scenarios → Auth API: uses
- Login page → Web application: interacts with
pages/LoginPage.js - Jobs page → Web application: selects jobs
pages/JobsPage.js - Screening page → Web application: opens screening
pages/ScreeningPage.js - Auth API → Web application: posts login
api/AuthAPI.js