How surajswamy20/playwright-framework works
This repository is a Playwright test-automation framework for browser-based and API exercises. Its principal workflow is running E2E or API test suites against target applications and services; page objects, fixtures, test data, and request helpers provide supporting layers. The tree also shows suites for login, products, browser behavior, and API lifecycle/authentication. Test files and the README were not excerpted, so their detailed calls and wiring cannot be confirmed; the graph avoids asserting those connections.
Main entry points: LoginPage.ts Login pages · LearningLoginPage.ts Learning login · apihelper.ts API requests · playwright.config.ts Runner config
Components 16
Test suites
- Browser scenarios
tests/e2e - API scenarios
tests/api
Page objects
- Login pages
pages/LoginPage.ts - Learning login
pages/LearningLoginPage.ts - Product pages
pages/productPage.ts - Learning products
pages/LearningProductsPage.ts
Test support
- Test fixtures
fixtures - Login data
data/loginData.ts - API test data
data/apiTestData.ts - API requests
utils/apihelper.ts - Login helper
utils/importExportLogin.ts/importExportLogin.ts - Runner config
playwright.config.ts
Other components
- Test author
- Playwright runner
- Sauce Demo
- Objects API
Connections 7
- Test author → Playwright runner: runs tests
- Playwright runner → Browser scenarios: executes suites
- Playwright runner → API scenarios: executes suites
- Learning login → Sauce Demo: opens site
pages/LearningLoginPage.ts - Login pages → Sauce Demo: opens site
pages/LoginPage.ts - Runner config → Sauce Demo: sets base URL
playwright.config.ts - API requests → Objects API: sends requests
utils/apihelper.ts