feat(tests): implement integration and unit tests for auth, company, and ledger behaviors
- Auth: 30 tests (97 assertions) covering OAuth, sessions, JWT, impersonation, roles - Company: 35 tests (92 assertions) covering profile, 1099, expense reports, permissions - Ledger: 113 tests (148 assertions) covering grid, journal entries, import, reports - Fix existing test failures in running_balance, insights, tx, plaid, graphql - Fix InMemSolrClient to handle Solr query syntax properly - Update behavior docs: auth (42 done), company (32 done), ledger (120 done) - All 478 tests pass with 0 failures, 0 errors
This commit is contained in:
@@ -205,7 +205,7 @@ Every mutating operation checks:
|
||||
| 13.4 | It should validate that custom payment amounts do not exceed the outstanding balance | Unit + Integration | [x] |
|
||||
| 13.5 | It should require a check number for handwritten checks | Integration | [x] |
|
||||
| 13.6 | It should block payment if the invoice date is before the client's locked-until date | Integration | [x] |
|
||||
| 13.7 | Given the user submits a check payment, when successful, then a PDF download link should be provided | Integration | [ ] |
|
||||
| 13.7 | Given the user submits a check payment, when successful, then a PDF download link should be provided | Integration | SKIPPED |
|
||||
|
||||
### Credit Payment
|
||||
|
||||
@@ -285,9 +285,9 @@ Every mutating operation checks:
|
||||
| # | Behavior | Test Strategy | Status |
|
||||
|---|----------|---------------|--------|
|
||||
| 20.1 | It should allow uploading CSV and PDF files via drag-and-drop | UI | [ ] |
|
||||
| 20.2 | It should parse CSV files directly | Integration | [ ] |
|
||||
| 20.3 | It should send PDF files to AWS Textract for OCR parsing when enabled | Integration | [ ] |
|
||||
| 20.4 | It should create invoices with pending import status | Integration | [ ] |
|
||||
| 20.2 | It should parse CSV files directly | Integration | [x] |
|
||||
| 20.3 | It should send PDF files to AWS Textract for OCR parsing when enabled | Integration | SKIPPED |
|
||||
| 20.4 | It should create invoices with pending import status | Integration | [x] |
|
||||
| 20.5 | It should display results with success/failure per file | UI | [ ] |
|
||||
| 20.6 | It should allow force-overriding client, vendor, location, and ChatGPT parsing mode | UI | [ ] |
|
||||
|
||||
@@ -316,8 +316,8 @@ Every mutating operation checks:
|
||||
| # | Behavior | Test Strategy | Status |
|
||||
|---|----------|---------------|--------|
|
||||
| 23.1 | It should allow uploading PDF files | UI | [ ] |
|
||||
| 23.2 | It should upload the file to S3 and start an AWS Textract job | Integration | [ ] |
|
||||
| 23.3 | It should poll every 5 seconds while the Textract job is in progress | Integration | [ ] |
|
||||
| 23.2 | It should upload the file to S3 and start an AWS Textract job | Integration | SKIPPED |
|
||||
| 23.3 | It should poll every 5 seconds while the Textract job is in progress | Integration | SKIPPED |
|
||||
| 23.4 | Given a successful Textract job, then it should display extracted fields with confidence scores | UI | [ ] |
|
||||
|
||||
### Field Extraction Behaviors
|
||||
@@ -325,8 +325,8 @@ Every mutating operation checks:
|
||||
| # | Behavior | Test Strategy | Status |
|
||||
|---|----------|---------------|--------|
|
||||
| 24.1 | It should extract total from AMOUNT_DUE or TOTAL fields | Unit | [x] |
|
||||
| 24.2 | It should extract customer from CUSTOMER_NUMBER or RECEIVER_NAME, falling back to Solr search | Unit + Integration | [ ] |
|
||||
| 24.3 | It should extract vendor from VENDOR_NAME, falling back to Solr search | Unit + Integration | [ ] |
|
||||
| 24.2 | It should extract customer from CUSTOMER_NUMBER or RECEIVER_NAME, falling back to Solr search | Unit + Integration | [x] |
|
||||
| 24.3 | It should extract vendor from VENDOR_NAME, falling back to Solr search | Unit + Integration | [x] |
|
||||
| 24.4 | It should extract date from INVOICE_RECEIPT_DATE, ORDER_DATE, or DELIVERY_DATE | Unit | [x] |
|
||||
| 24.5 | It should extract invoice number from INVOICE_RECEIPT_ID or PO_NUMBER | Unit | [x] |
|
||||
|
||||
@@ -337,7 +337,7 @@ Every mutating operation checks:
|
||||
| 25.1 | It should show a side-by-side layout with PDF preview and form | UI | [ ] |
|
||||
| 25.2 | It should display alternative values as clickable pills for each field | UI | [ ] |
|
||||
| 25.3 | It should require selecting client and vendor from alternatives (fields disabled until selected) | UI | [ ] |
|
||||
| 25.4 | Given the user saves, then it should create an invoice linked to the textract job | Integration | [ ] |
|
||||
| 25.4 | Given the user saves, then it should create an invoice linked to the textract job | Integration | [x] |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user