How irs-jin/alaya-automation-testing works
This repository is a Playwright automation suite for ALAYA ERP, with page objects for business screens and shared helpers for login, iframe discovery, and self-healing selectors. The documented user-to-result workflow is a serial browser run that logs in, navigates ERP modules, performs or verifies transactions and reports, and produces test results. The supplied tree contains no test specs or suite entry point, so the initiating test-to-page wiring cannot be shown; unsampled module coverage follows the README and filenames.
Main entry points: selfHealingLocator.js Self-healing selectors · frameHelper.js Frame discovery · itemPage.js Item master · stockTakePage.js Stock taking
Components 20
Shared automation
- Login flow
framework/loginHelper.js - Self-healing selectors
framework/selfHealingLocator.js - Fuzzy matching
framework/fuzzyMatch.js - Frame discovery
framework/frameHelper.js
Finance
- Ledger and cash
framework/pages/journalEntryPage.js - Receivables
framework/pages/arInvoicePage.js - Payables
framework/pages/apInvoicePage.js - Bank reconciliation
framework/pages/bankReconciliationPage.js
Inventory
- Item master
framework/pages/itemPage.js - Stock taking
framework/pages/stockTakePage.js - Stock movements
framework/pages/stockTransferPage.js
Purchasing
- Purchase orders
framework/pages/purchaseOrderPage.js - Purchase returns
framework/pages/purchaseReturnPage.js
Sales and POS
- Sales transactions
framework/pages/cashSalesPage.js - Sales orders
framework/pages/salesOrderPage.js - POS promotions
framework/pages/promotionPage.js
Reports
- ERP reports
framework/pages/generalLedgerReportPage.js - Module reports
framework/pages/inventoryReportPage.js
Other components
- QA engineer
- ALAYA ERP
Connections 18
- Login flow → Self-healing selectors: finds controls
- Self-healing selectors → Fuzzy matching: falls back to
- Item master → Self-healing selectors: finds controls
- Item master → Frame discovery: resolves frames
- Stock taking → Self-healing selectors: finds controls
- Stock taking → Frame discovery: resolves frames
- Sales transactions → Self-healing selectors: finds controls
- Sales transactions → Frame discovery: resolves frames
- Purchase orders → Self-healing selectors: finds controls
- Purchase orders → Frame discovery: resolves frames
- Purchase returns → Self-healing selectors: finds controls
- Purchase returns → Frame discovery: resolves frames
- Login flow → ALAYA ERP: logs in
- Item master → ALAYA ERP: automates screens
- Stock taking → ALAYA ERP: automates screens
- Sales transactions → ALAYA ERP: automates screens
- Purchase orders → ALAYA ERP: automates screens
- Purchase returns → ALAYA ERP: automates screens