patchwise-agent-studio / tests /cases /exp /EXP-RMB-001.yaml
EnergyVenom's picture
Patchwise Agent Studio: Oracle AI Agent Studio cycles
af1bee9 verified
Raw History Blame Contribute Delete
6.38 kB
# Fusion EXP test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod.
id: EXP-RMB-001
title: Process Expense Reimbursements creates the Payables payment request
module: EXP
process: Reimbursement
priority: P1
priority_rationale: "Cross-pack hand-off every cycle. I5 x C4 x U5 = 100 -> P1 (map row EXP:RMB-01 is P1, score 100)."
priority_source: case-level risk x usage (analysis/expenses-coverage-map.md §4 method) scored on what this case tests; not the row tier
priority_score:
impact: 5
change_likelihood: 4
usage: 5
usage_basis: ASSUMED (placeholder until Scout usage counts)
risk: 20
score: 100
tiers: P1 >= 75, P2 40-74, P3 20-39, P4 < 20
usage_sensitive: false
map_ids:
- "EXP:RMB-01"
verification: UNVERIFIED
approval_status: draft - pending consultant approval (architecture approval gate)
owner: Expenses up to the Payables payment request; P2P owns validation and payment (accepted boundary).
client_questions:
- EXP-Q07
type: happy
tags:
- cross-pack-p2p
- ess
- exp
- p1
- reimbursement
roles:
- employee
- manager
- expense_manager
preconditions:
- Employee synthetic bank account (DR-EXP-USR-001).
data_recipes:
- DR-EXP-USR-001
- DR-EXP-ORG-001
- DR-EXP-RMB-001
test_values:
approved: 225.0
card_company_pay: 0.0
advances: 0.0
reimbursed: 225.0
steps:
- n: 1
action: login_as
value: "{{users.employee}}"
expected: Home page loads for the employee test user; no error banner.
- n: 2
action: navigate
value: "{{nav.expenses}}"
expected: Work area 'expenses' opens (path resolved from ui-glossary nav map).
- n: 3
action: click
target:
role: button
name: Create Report
expected: Create Expense Report page.
- n: 4
action: fill
target:
role: textbox
name: Purpose
value: "ZZ trip {{run.suffix}}"
expected: Value accepted; no field-level error.
- n: 5
action: click
target:
role: button
name: Create Item
expected: Action completes without error.
- n: 6
action: fill
target:
role: combobox
name: Expense Type
value: "{{data.cat_meals}}"
expected: Value accepted; no field-level error.
- n: 7
action: fill
target:
role: textbox
name: Amount
value: '45.00'
expected: Value accepted; no field-level error.
- n: 8
action: fill
target:
role: textbox
name: Date
value: "{{dates.today_minus_3}}"
expected: Value accepted; no field-level error.
- n: 9
action: fill
target:
role: textbox
name: Merchant
value: ZZ Merchant
expected: Value accepted; no field-level error.
- n: 10
action: click
target:
role: button
name: Attach Receipt
expected: Synthetic receipt image attached.
- n: 11
action: click
target:
role: button
name: Save
expected: Item 45.00 saved.
- n: 12
action: click
target:
role: button
name: Create Item
expected: Action completes without error.
- n: 13
action: fill
target:
role: combobox
name: Expense Type
value: "{{data.cat_hotel}}"
expected: Value accepted; no field-level error.
- n: 14
action: fill
target:
role: textbox
name: Amount
value: '180.00'
expected: Value accepted; no field-level error.
- n: 15
action: fill
target:
role: textbox
name: Date
value: "{{dates.today_minus_3}}"
expected: Value accepted; no field-level error.
- n: 16
action: fill
target:
role: textbox
name: Merchant
value: ZZ Merchant
expected: Value accepted; no field-level error.
- n: 17
action: click
target:
role: button
name: Attach Receipt
expected: Synthetic receipt image attached.
- n: 18
action: click
target:
role: button
name: Save
expected: Item 180.00 saved.
- n: 19
action: click
target:
role: button
name: Submit
expected: "Report submitted; status Pending manager approval; capture {{run.report_number}}."
- n: 20
action: login_as
value: "{{users.manager}}"
expected: Home page loads for the manager test user; no error banner.
- n: 21
action: click
target:
role: button
name: Notifications
expected: Notifications/worklist panel opens.
- n: 22
action: click
target:
role: link
name: "{{run.report_number}}"
expected: Approval notification for the document opens with header, lines and amount matching the submitted document.
- n: 23
action: click
target:
role: button
name: Approve
expected: Approved.
- n: 24
action: navigate
value: "{{nav.scheduled_processes}}"
expected: Work area 'scheduled_processes' opens (path resolved from ui-glossary nav map).
- n: 25
action: click
target:
role: button
name: Schedule New Process
expected: Schedule New Process dialog opens.
- n: 26
action: fill
target:
role: combobox
name: Name
value: Process Expense Reimbursements and Cash Advances
expected: Process 'Process Expense Reimbursements and Cash Advances' is selectable.
- n: 27
action: click
target:
role: button
name: OK
expected: Process Details dialog opens.
- n: 28
action: fill
target:
role: textbox
name: Business Unit
value: "{{org.exp_bu}}"
expected: Value accepted; no field-level error.
- n: 29
action: fill
target:
role: textbox
name: Pay Group
value: "{{data.pay_group}}"
expected: Value accepted; no field-level error.
- n: 30
action: click
target:
role: button
name: Submit
expected: "Confirmation dialog shows a process ID; capture as {{run.process_id}}."
- n: 31
action: wait_for
target:
role: cell
name: Status
value: "{{run.process_id}}"
expected: Payment request created in Payables for 225.00 (approved 225.00 - card company-pay 0.00 - advances 0.00).
- n: 32
action: verify_api
target:
method: GET
path: "{{env.rest_base}}/invoices?q=InvoiceType='Expense Report';Description LIKE '%{{run.report_number}}%'"
expected: Payables payment request 225.00 to the employee supplier; validation and payment run owned by P2P (PAY-01).
expected_result: Payables payment request 225.00 to the employee supplier; validation and payment run owned by P2P (PAY-01).
notes:
- Runs against a mock prove only the mock, never Oracle Fusion.