File size: 4,342 Bytes
af1bee9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# Fusion EXP test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod.
id: EXP-RPT-001
title: Create expense report with two receipted items and submit
module: EXP
process: Expense entry
priority: P1
priority_rationale: "Main employee flow; Redwood pages change often. I5 x C4 x U5 = 100 -> P1 (map row EXP:EXP-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:EXP-01"
verification: UNVERIFIED
approval_status: draft - pending consultant approval (architecture approval gate)
client_questions:
- X-Q03
type: happy
tags:
- exp
- expenses
- p1
- smoke
roles:
- employee
preconditions:
- Employee with manager (DR-EXP-USR-001).
data_recipes:
- DR-EXP-USR-001
- DR-EXP-ORG-001
- DR-EXP-POL-001
test_values:
  items:
  - 45.0
  - 180.0
  total: 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: verify
  target:
    role: cell
    name: Report Total
  expected: 225.00 (45.00 + 180.00).
- n: 21
  action: verify_api
  target:
    method: GET
    path: "{{env.rest_base}}/expenseReports?q=ExpenseReportNumber='{{run.report_number}}'"
  expected: Status SUBMITTED / pending approval; 2 items 45.00 and 180.00 with receipts attached.
expected_result: Status SUBMITTED / pending approval; 2 items 45.00 and 180.00 with receipts attached.
notes:
- Runs against a mock prove only the mock, never Oracle Fusion.